Update to tox-gh.

This commit is contained in:
Jannis Leidel 2023-05-02 10:52:38 +02:00
parent be2e7656b8
commit 321fed2914
No known key found for this signature in database
GPG key ID: C795956FB489DCA9
2 changed files with 23 additions and 4 deletions

View file

@ -9,10 +9,26 @@ on:
- main
jobs:
python-django:
test:
runs-on: ubuntu-20.04
strategy:
max-parallel: 5
fail-fast: false
matrix:
python-version:
- '3.6'
- '3.7'
- '3.8'
- '3.9'
- '3.10'
- '3.11'
django-version:
- '3.2'
- '4.0'
exclude:
- { django-version: '4.1', python-version: '3.7' }
- { django-version: '4.2', python-version: '3.7' }
- { django-version: '3.2', python-version: '3.11' }
steps:
- uses: actions/checkout@v2
@ -26,10 +42,13 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install --upgrade tox tox-gh-actions
python -m pip install --upgrade tox tox-gh
- name: Setup test suite
run: tox4 r -vv --notest
- name: Tox tests (Python ${{ matrix.python-version }}, Django ${{ matrix.django-version }})
run: tox
run: tox4 r --skip-pkg-install
env:
DJANGO: ${{ matrix.django-version }}

View file

@ -9,7 +9,7 @@ envlist =
readme
docs
[gh-actions]
[gh]
python =
3.6: py36
3.7: py37