[tox]
envlist =
    py38-qa
    py{36,37,38,39,py3}-dj{22,30,31,master}

[gh-actions]
python =
    3.6: py36
    3.7: py37
    3.8: py38
    3.9: py39
    pypy3: pypy3

[testenv]
deps =
    -r requirements-test.txt
    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
usedevelop = true
commands = pytest
setenv =
    PYTHONDONTWRITEBYTECODE=1

[testenv:py{36,37,38,39,py3}-dj{master}]
ignore_errors = true
ignore_outcome = true

[testenv:py38-qa]
basepython = python3.8
deps = -r requirements-qa.txt
commands =
    mypy axes
    prospector
    black -t py36 --check --diff axes

[tox]
envlist =
    py38-qa
    py{36,37,38,39,py3}-dj{22,30,31,master}

[gh-actions]
python =
    3.6: py36
    3.7: py37
    3.8: py38
    3.9: py39
    pypy3: pypy3

[testenv]
deps =
    -r requirements-test.txt
    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
usedevelop = true
commands = pytest
setenv =
    PYTHONDONTWRITEBYTECODE=1

[testenv:py{36,37,38,39,py3}-dj{master}]
ignore_errors = true
ignore_outcome = true

[testenv:py39-qa]
basepython = python3.8
deps = -r requirements-qa.txt
commands =
    mypy axes
    prospector
    black -t py36 --check --diff axes

Use Python 3.9 for running QA environments
Use Python 3.9 for running QA environments
