bidict/tox.ini

41 lines
1.1 KiB
INI
Raw Normal View History

2014-09-23 14:08:21 +00:00
[tox]
envlist =
py3{10,9,8,7}
2022-03-23 20:56:16 +00:00
pypy3{9,8,7}
lint
docs
skip_missing_interpreters = true
2014-09-23 14:08:21 +00:00
2022-02-09 16:56:57 +00:00
[base]
# Benchmarking is enabled by default. Disable it in CI. Instead run
# benchmarks outside CI, via e.g. pytest --benchmark-only --benchmark-json=...
PYTEST_ADDOPTS = --benchmark-disable
# Coverage is disabled by default. Save the options here for enabling it selectively below.
COVERAGE_ENABLE = --cov=bidict --cov-config=.coveragerc --cov-report=xml
2014-09-23 14:08:21 +00:00
[testenv]
deps = -r requirements/tests.txt
commands = ./run_tests.py
2022-02-09 16:56:57 +00:00
setenv =
PYTEST_ADDOPTS = {[base]PYTEST_ADDOPTS}
# Only enable coverage for py37 and py310 by default
[testenv:py37]
setenv =
2022-02-09 16:56:57 +00:00
PYTEST_ADDOPTS = {[base]PYTEST_ADDOPTS} {[base]COVERAGE_ENABLE}
# Only enable coverage for py37 and py310 by default
[testenv:py310]
setenv =
2022-02-09 16:56:57 +00:00
PYTEST_ADDOPTS = {[base]PYTEST_ADDOPTS} {[base]COVERAGE_ENABLE}
[testenv:lint]
deps = -r requirements/lint.txt
skip_install = true
commands = pre-commit run --all-files --show-diff-on-failure
[testenv:docs]
deps = -r requirements/docs.txt
commands = sphinx-build -W --keep-going -b html -d {envtmpdir}/doctrees docs {envtmpdir}/html