Add tox config
This commit is contained in:
parent
5c3c42d6b3
commit
26b78adb56
3 changed files with 30 additions and 1 deletions
27
tox.ini
Normal file
27
tox.ini
Normal file
|
@ -0,0 +1,27 @@
|
|||
|
||||
[tox]
|
||||
envlist = py36, py37, py38, py39, py310, py311
|
||||
|
||||
[testenv]
|
||||
commands =
|
||||
pip install -U pip
|
||||
pip install -U setuptools wheel
|
||||
pip install -U --upgrade-strategy eager wuttjamaican[docs,tests]
|
||||
pytest {posargs}
|
||||
|
||||
[testenv:coverage]
|
||||
basepython = python3.11
|
||||
commands =
|
||||
pip install -U pip
|
||||
pip install -U setuptools wheel
|
||||
pip install -U --upgrade-strategy eager wuttjamaican[db,tests]
|
||||
pytest --cov=wuttjamaican --cov-report=html --cov-fail-under=100
|
||||
|
||||
[testenv:docs]
|
||||
basepython = python3.11
|
||||
changedir = docs
|
||||
commands =
|
||||
pip install -U pip
|
||||
pip install -U setuptools wheel
|
||||
pip install -U --upgrade-strategy eager wuttjamaican[db,docs]
|
||||
sphinx-build -b html -d {envtmpdir}/doctrees -W -T . {envtmpdir}/docs
|
Loading…
Add table
Add a link
Reference in a new issue