ci: test old python releases, pin binary environments

This commit is contained in:
Maximilian Hils 2020-07-27 18:06:55 +02:00
parent abb8ccc210
commit 1e5464a9e6
2 changed files with 26 additions and 23 deletions

View File

@ -42,22 +42,32 @@ jobs:
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
os: [macos-latest, windows-latest, ubuntu-latest] include:
- os: windows-latest
py: 3.8
- os: macos-latest
py: 3.8
- os: ubuntu-latest
py: 3.8
- os: ubuntu-latest
py: 3.7
- os: ubuntu-latest
py: 3.6
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
steps: steps:
- run: printenv - run: printenv
- uses: actions/checkout@v1 - uses: actions/checkout@v1
- uses: actions/setup-python@v1 - uses: actions/setup-python@v1
with: with:
python-version: '3.8' python-version: ${{ matrix.py }}
- run: pip install tox - run: pip install tox
- run: tox -e py38 - run: tox -e py
- uses: codecov/codecov-action@v1 - uses: codecov/codecov-action@v1
with: with:
file: ./coverage.xml file: ./coverage.xml
name: ${{ matrix.os }} name: ${{ matrix.os }}
fail_ci_if_error: false fail_ci_if_error: false
test-py35: test-unsupported-python-version:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v1 - uses: actions/checkout@v1
@ -77,7 +87,7 @@ jobs:
python-version: '3.8' python-version: '3.8'
- run: pip install tox - run: pip install tox
- run: tox -e cibuild -- build - run: tox -e cibuild -- build
- uses: actions/upload-artifact@master - uses: actions/upload-artifact@v2
with: with:
name: wheel name: wheel
path: release/dist path: release/dist
@ -86,7 +96,7 @@ jobs:
fail-fast: false fail-fast: false
matrix: matrix:
# Old Ubuntu version for old glibc # Old Ubuntu version for old glibc
os: [macos-latest, windows-latest, ubuntu-16.04] os: [macos-10.15, windows-2019, ubuntu-16.04]
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
env: env:
CI_BUILD_PYINSTALLER: 1 CI_BUILD_PYINSTALLER: 1
@ -105,7 +115,7 @@ jobs:
- run: pip install tox - run: pip install tox
- run: tox -e cibuild -- build - run: tox -e cibuild -- build
# artifacts must have different names, see https://github.com/actions/upload-artifact/issues/24 # artifacts must have different names, see https://github.com/actions/upload-artifact/issues/24
- uses: actions/upload-artifact@master - uses: actions/upload-artifact@v2
with: with:
name: binaries.${{ matrix.os }} name: binaries.${{ matrix.os }}
path: release/dist path: release/dist
@ -165,7 +175,7 @@ jobs:
with: with:
python-version: '3.7' python-version: '3.7'
- run: pip install tox - run: pip install tox
- uses: actions/download-artifact@master - uses: actions/download-artifact@v2
with: with:
name: wheel name: wheel
path: release/dist path: release/dist
@ -189,23 +199,13 @@ jobs:
- uses: actions/setup-python@v1 - uses: actions/setup-python@v1
with: with:
python-version: '3.8' python-version: '3.8'
# artifacts must be downloaded individually, see https://github.com/actions/download-artifact/issues/6 - uses: actions/download-artifact@v2
- uses: actions/download-artifact@master
with: with:
name: wheel
path: release/dist
- uses: actions/download-artifact@master
with:
name: binaries.windows-latest
path: release/dist
- uses: actions/download-artifact@master
with:
name: binaries.macos-latest
path: release/dist
- uses: actions/download-artifact@master
with:
name: binaries.ubuntu-16.04
path: release/dist path: release/dist
# move artifacts from their subfolders into release/dist
- run: find release/dist -mindepth 2 -type f -exec mv {} release/dist \;
# and then delete the empty folders
- run: find release/dist -type d -empty -delete
- run: ls release/dist - run: ls release/dist
- run: pip install tox - run: pip install tox
- run: tox -e cibuild -- upload - run: tox -e cibuild -- upload

View File

@ -90,6 +90,9 @@ setup(
':sys_platform == "win32"': [ ':sys_platform == "win32"': [
"pydivert>=2.0.3,<2.2", "pydivert>=2.0.3,<2.2",
], ],
':python_version == "3.6"': [
"dataclasses>=0.7",
],
'dev': [ 'dev': [
"asynctest>=0.12.0", "asynctest>=0.12.0",
"Flask>=1.0,<1.2", "Flask>=1.0,<1.2",