forked from pymodbus-dev/pymodbus
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request pymodbus-dev#622 from riptideio/dev
v2.5.1
- Loading branch information
Showing
16 changed files
with
226 additions
and
102 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,6 +20,8 @@ jobs: | |
name: ${{ matrix.task.name }} - ${{ matrix.os.name }} ${{ matrix.python.name }} ${{ matrix.arch.name }} | ||
runs-on: ${{ matrix.os.runs-on }} | ||
container: ${{ matrix.os.container[matrix.python.docker] }} | ||
# present runtime seems to be about 1 minute 30 seconds | ||
timeout-minutes: 10 | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
|
@@ -30,7 +32,6 @@ jobs: | |
os: | ||
- name: Linux | ||
runs-on: ubuntu-latest | ||
python_platform: linux | ||
matrix: linux | ||
container: | ||
2.7: docker://python:2.7-buster | ||
|
@@ -40,55 +41,67 @@ jobs: | |
3.9: docker://python:3.9-buster | ||
pypy2: docker://pypy:2-jessie | ||
pypy3: docker://pypy:3-stretch | ||
# - name: Windows | ||
# runs-on: windows-latest | ||
# python_platform: win32 | ||
# matrix: windows | ||
# - name: macOS | ||
# runs-on: macos-latest | ||
# python_platform: darwin | ||
# matrix: macos | ||
- name: macOS | ||
runs-on: macos-latest | ||
matrix: macos | ||
- name: Windows | ||
runs-on: windows-latest | ||
matrix: windows | ||
openssl: | ||
x86: win32 | ||
x64: win64 | ||
python: | ||
- name: CPython 2.7 | ||
tox: py27 | ||
action: 2.7 | ||
docker: 2.7 | ||
matrix: 2.7 | ||
implementation: cpython | ||
- name: PyPy 2.7 | ||
tox: pypy27 | ||
action: pypy-2.7 | ||
docker: pypy2.7 | ||
matrix: 2.7 | ||
implementation: pypy | ||
openssl_msvc_version: 2019 | ||
- name: CPython 3.6 | ||
tox: py36 | ||
action: 3.6 | ||
docker: 3.6 | ||
matrix: 3.6 | ||
implementation: cpython | ||
- name: CPython 3.7 | ||
tox: py37 | ||
action: 3.7 | ||
docker: 3.7 | ||
matrix: 3.7 | ||
implementation: cpython | ||
- name: CPython 3.8 | ||
tox: py38 | ||
action: 3.8 | ||
docker: 3.8 | ||
matrix: 3.8 | ||
implementation: cpython | ||
- name: CPython 3.9 | ||
tox: py39 | ||
action: 3.9 | ||
docker: 3.9 | ||
matrix: 3.9 | ||
implementation: cpython | ||
- name: PyPy 3.6 | ||
tox: pypy36 | ||
action: pypy-3.6 | ||
docker: pypy3.6 | ||
matrix: 3.6 | ||
implementation: pypy | ||
openssl_msvc_version: 2019 | ||
- name: PyPy 3.7 | ||
tox: pypy37 | ||
action: pypy-3.7 | ||
docker: pypy3.7 | ||
matrix: 3.7 | ||
implementation: pypy | ||
openssl_msvc_version: 2019 | ||
arch: | ||
- name: x86 | ||
action: x86 | ||
|
@@ -105,6 +118,12 @@ jobs: | |
matrix: macos | ||
arch: | ||
matrix: x86 | ||
- os: | ||
matrix: windows | ||
python: | ||
implementation: pypy | ||
arch: | ||
matrix: x64 | ||
env: | ||
# Should match name above | ||
JOB_NAME: ${{ matrix.task.name }} - ${{ matrix.os.name }} ${{ matrix.python.name }} ${{ matrix.arch.name }} | ||
|
@@ -129,7 +148,37 @@ jobs: | |
pip install --upgrade pip setuptools wheel | ||
pip install --upgrade tox | ||
- uses: twisted/[email protected] | ||
- name: Add PyPy Externals | ||
if: ${{ matrix.os.matrix == 'windows' && matrix.python.implementation == 'pypy'}} | ||
env: | ||
PYPY_EXTERNALS_PATH: ${{ github.workspace }}/pypy_externals | ||
shell: bash | ||
run: | | ||
echo $PYPY_EXTERNALS_PATH | ||
mkdir --parents $(dirname $PYPY_EXTERNALS_PATH) | ||
hg clone https://foss.heptapod.net/pypy/externals/ $PYPY_EXTERNALS_PATH | ||
dir $PYPY_EXTERNALS_PATH | ||
cd $PYPY_EXTERNALS_PATH && hg update win32_14x | ||
echo "INCLUDE=$PYPY_EXTERNALS_PATH/include;$INCLUDE" >> $GITHUB_ENV | ||
echo "LIB=$PYPY_EXTERNALS_PATH/lib;$LIB" >> $GITHUB_ENV | ||
# echo "CL=${{ matrix.PYTHON.CL_FLAGS }}" >> $GITHUB_ENV | ||
- name: Add Brew | ||
if: ${{ matrix.os.matrix == 'macos' && matrix.python.implementation == 'pypy'}} | ||
shell: bash | ||
run: | | ||
brew install [email protected] rust | ||
echo "LDFLAGS=-L$(brew --prefix [email protected])/lib" >> $GITHUB_ENV | ||
echo "CFLAGS=-I$(brew --prefix [email protected])/include" >> $GITHUB_ENV | ||
- name: rustup | ||
if: ${{ matrix.os.matrix == 'windows' && matrix.python.implementation == 'pypy'}} | ||
shell: bash | ||
run: | | ||
rustup target add i686-pc-windows-msvc | ||
- name: Test | ||
env: | ||
# When compiling Cryptography for PyPy on Windows there is a cleanup | ||
# failure. This is CI, it doesn't matter. | ||
PIP_NO_CLEAN: 1 | ||
run: | | ||
tox -vv -e ${{ matrix.python.tox }} | ||
- name: Coverage Processing | ||
|
@@ -161,7 +210,6 @@ jobs: | |
os: | ||
- name: Linux | ||
runs-on: ubuntu-latest | ||
python_platform: linux | ||
matrix: linux | ||
container: | ||
3.8: docker://python:3.8-buster | ||
|
@@ -195,6 +243,7 @@ jobs: | |
# Should match JOB_NAME below | ||
name: ${{ matrix.task.name }} - ${{ matrix.os.name }} ${{ matrix.python.name }} ${{ matrix.arch.name }} | ||
runs-on: ${{ matrix.os.runs-on }} | ||
if: always() | ||
needs: | ||
- test | ||
container: ${{ matrix.os.container[matrix.python.docker] }} | ||
|
@@ -208,7 +257,6 @@ jobs: | |
os: | ||
- name: Linux | ||
runs-on: ubuntu-latest | ||
python_platform: linux | ||
matrix: linux | ||
container: | ||
3.8: docker://python:3.8-buster | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.