Split up test matrix into Python-Django combinations

This commit is contained in:
Peter Bittner 2020-12-03 23:22:58 +01:00
parent e4399d63a1
commit 5daa0c5329
2 changed files with 23 additions and 6 deletions

View file

@ -1,6 +1,8 @@
name: Test
on: [push, pull_request]
on:
- push
- pull_request
jobs:
build:
@ -8,7 +10,16 @@ jobs:
strategy:
max-parallel: 5
matrix:
python-version: ['3.6', '3.7', '3.8', '3.9', '3.10']
python-version:
- '3.6'
- '3.7'
- '3.8'
- '3.9'
- '3.10'
django-version:
- '2.2'
- '3.2'
- '4.0'
steps:
- uses: actions/checkout@v2
@ -37,9 +48,10 @@ jobs:
python -m pip install --upgrade pip
python -m pip install --upgrade tox tox-gh-actions
- name: Tox tests
run: |
tox -v
- name: "Unit tests for py${{ matrix.python-version }}-django${{ matrix.django-version }}"
run: tox
env:
DJANGO: ${{ matrix.django-version }}
- name: Upload coverage
uses: codecov/codecov-action@v1

View file

@ -12,7 +12,6 @@ deps =
coverage
pytest-django
django22: Django>=2.2,<3.0
django31: Django>=3.1,<3.2
django32: Django>=3.2,<4.0
django40: Django>=4.0a1,<4.1
@ -28,6 +27,12 @@ python =
3.9: py39
3.10: py310
[gh-actions:env]
DJANGO =
2.2: django22
3.2: django32
4.0: django40
[testenv:py37-bandit]
description = PyCQA security linter
deps = bandit<1.6