Separate tox QA step from other commands

This commit is contained in:
Aleksi Häkli 2021-01-05 15:32:11 +02:00
parent 9cf239f495
commit c998e7a595
2 changed files with 12 additions and 6 deletions

View file

@ -10,6 +10,11 @@ jobs:
max-parallel: 5
matrix:
python-version: ['3.6', '3.7', '3.8', '3.9', 'pypy3']
django-version: ['2.2', '3.0', '3.1', 'dev']
# Tox configuration for QA environment
include:
- python-version: '3.8'
django-version: 'qa'
steps:
- uses: actions/checkout@v2
@ -41,6 +46,8 @@ jobs:
- name: Tox tests
run: |
tox -v
env:
DJANGO: ${{ matrix.django-version }}
- name: Upload coverage
uses: codecov/codecov-action@v1

11
tox.ini
View file

@ -1,7 +1,7 @@
[tox]
envlist =
py38-qa
py{36,37,38,39,py3}-dj{22,30,31,master}
py38-djqa
py{36,37,38,39,py3}-dj{22,30,31,dev}
[gh-actions]
python =
@ -17,18 +17,17 @@ deps =
dj22: django>=2.2,<2.3
dj30: django>=3.0,<3.1
dj31: django>=3.1,<3.2
djmaster: https://github.com/django/django/archive/master.tar.gz
djdev: https://github.com/django/django/archive/master.tar.gz
usedevelop = true
commands = pytest
setenv =
PYTHONDONTWRITEBYTECODE=1
[testenv:py{36,37,38,39,py3}-dj{master}]
[testenv:py{36,37,38,39,py3}-dj{dev}]
ignore_errors = true
ignore_outcome = true
[testenv:py38-qa]
basepython = python3.8
[testenv:py38-djqa]
deps = -r requirements-qa.txt
commands =
mypy axes