Add tox config
This commit is contained in:
parent
5c3c42d6b3
commit
26b78adb56
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1,3 +1,4 @@
|
|||
.coverage
|
||||
docs/_build/
|
||||
.tox/
|
||||
WuttJamaican.egg-info/
|
||||
|
|
|
@ -40,5 +40,6 @@ where = src
|
|||
|
||||
|
||||
[options.extras_require]
|
||||
db = SQLAlchemy<2
|
||||
docs = Sphinx
|
||||
tests = pytest-cov; SQLAlchemy<2
|
||||
tests = pytest-cov; tox
|
||||
|
|
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…
Reference in a new issue