[tox] minversion = 3 envlist = cover-{clean,report} py{38,39,310,311,312}{,-lektor33,-mistune0} lint labels = cover = py311{,-lektor33,-mistune0}, cover-{clean,report} [gh-actions] python = 3.8: py38, cover 3.9: py39, cover 3.10: py310, cover 3.11: py311, cover 3.12: py312, cover, lint [testenv] deps = pytest pytest-cov !lektor33: lektor>=3.4.0a1 lektor33: lektor<3.4 mistune0: mistune<1 commands = coverage run -m pytest {posargs: tests} depends = py{38,39,310,311,312}: cover-clean cover-report: py{38,39,310,311,312}{,-lektor33,-mistune0} # workaround for pip cache contention under `tox p` with older pips download = true [testenv:cover-clean] deps = coverage[toml] skip_install = true commands = coverage erase [testenv:cover-report] deps = coverage[toml] skip_install = true commands = -coverage combine --append coverage html coverage report --fail-under 100 [testenv:lint] skip_install = True deps = build twine commands = python -m build -s --outdir {envtmpdir}/dist {toxinidir} twine check {envtmpdir}/dist/*