7

Adjust github workflow

This commit is contained in:
nick.moreton
2022-11-08 13:06:47 +00:00
parent 669940a2cc
commit 05682997a8
3 changed files with 22 additions and 61 deletions

View File

@ -22,72 +22,20 @@ jobs:
strategy: strategy:
max-parallel: 4 max-parallel: 4
matrix: matrix:
tox_env: python: ["3.7", "3.8", "3.9", "3.10", "3.11"]
- py37-dj22-wt211
- py37-dj22-wt212
- py37-dj22-wt213
- py38-dj22-wt211
- py38-dj22-wt212
- py38-dj22-wt213
- py37-dj30-wt211
- py37-dj30-wt212
- py37-dj30-wt213
- py38-dj30-wt211
- py38-dj30-wt212
- py38-dj30-wt213
include:
- python-version: 3.7
tox_env: py37-dj22-wt211
- python-version: 3.7
tox_env: py37-dj22-wt212
- python-version: 3.7
tox_env: py37-dj22-wt213
- python-version: 3.8
tox_env: py38-dj22-wt211
- python-version: 3.8
tox_env: py38-dj22-wt212
- python-version: 3.8
tox_env: py38-dj22-wt213
- python-version: 3.7
tox_env: py37-dj30-wt211
- python-version: 3.7
tox_env: py37-dj30-wt212
- python-version: 3.7
tox_env: py37-dj30-wt213
- python-version: 3.8
tox_env: py38-dj30-wt211
- python-version: 3.8
tox_env: py38-dj30-wt212
- python-version: 3.8
tox_env: py38-dj30-wt213
- python-version: 3.9
tox_env: py39-dj31-wt214
- python-version: 3.9
tox_env: py39-dj32-wt214
- python-version: 3.9
tox_env: py39-dj31-wt215
- python-version: 3.9
tox_env: py39-dj32-wt215
- python-version: 3.9
tox_env: py39-dj32-wt216
- python-version: 3.9
tox_env: py39-dj40-wt216
- python-version: 3.9
tox_env: py39-dj32-wt30
- python-version: 3.9
tox_env: py39-dj40-wt30
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }} - name: Setup Python
uses: actions/setup-python@v1 uses: actions/setup-python@v4
with: with:
python-version: ${{ matrix.python-version }} python-version: ${{ matrix.python }}
- name: Install dependencies - name: Install dependencies
run: | run: |
python -m pip install --upgrade pip python -m pip install --upgrade pip
pip install tox tox-gh-actions python -m pip install tox tox-gh-actions
- name: Test with tox - name: Test with tox
run: tox -e ${{ matrix.tox_env }} --index-url=https://pypi.python.org/simple/ run: tox
- name: Prepare artifacts - name: Prepare artifacts
run: mkdir -p .coverage-data && mv .coverage.* .coverage-data/ run: mkdir -p .coverage-data && mv .coverage.* .coverage-data/
- uses: actions/upload-artifact@master - uses: actions/upload-artifact@master

View File

@ -53,3 +53,16 @@ release:
rm -rf dist/* rm -rf dist/*
python setup.py sdist bdist_wheel python setup.py sdist bdist_wheel
twine upload -s dist/* twine upload -s dist/*
test-215:
tox -e py38-dj32-wt215
test-30:
tox -e py38-dj40-wt30
test-40:
tox -e py38-dj40-wt40
test-41:
tox -e py38-dj41-wt41

View File

@ -1,7 +1,7 @@
[tox] [tox]
envlist = envlist =
flake8 flake8
py{37,38,39,310,311}-dj{32}-wt{214,215} py{37,38,39,310,311}-dj{32}-wt{215}
py{38,39,310,311}-dj{32,40}-wt{216,30,40,41} py{38,39,310,311}-dj{32,40}-wt{216,30,40,41}
[gh-actions] [gh-actions]