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]
isolated_build = true
envlist = py{37,38,39,310,py3}, coverage-report
[testenv]
setenv =
PYTHONPATH = {toxinidir}:{toxinidir}/pytest_click
LC_ALL=en_US.utf-8
LANG=en_US.utf-8
deps =
pytest
coverage
click
commands =
coverage run --source=pytest_click -m pytest {posargs:test}
[testenv:coverage-report]
description = Report coverage over all measured test runs.
basepython = python3.8
deps = coverage
skip_install = true
depends = py{37,38,39,310}
commands =
coverage combine
coverage report
coverage xml -i {posargs:}
[testenv:build]
deps = pep517
commands = python -m pep517.build --source . --binary --out-dir dist/
|