1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
|
[tox]
minversion = 3.9.0
envlist = py39, py310, py311, flake8, mypy
isolated_build = true
toxworkdir = {toxinidir}/../.tox
[gh-actions]
python =
3.9: py39
3.10: py310, mypy, flake8
3.11: py311
[testenv]
setenv =
PYTHONPATH = {toxinidir}
deps =
-r{toxinidir}/dev-requirements.txt
commands =
pytest --basetemp={envtmpdir}
[testenv:flake8]
basepython = python3.10
deps = flake8
commands = flake8 pytest_retry tests
[testenv:mypy]
basepython = python3.10
deps =
-r{toxinidir}/dev-requirements.txt
commands = mypy pytest_retry
|