3
0
Fork 0

Fix errors for tox runs

This commit is contained in:
Lance Edgar 2023-11-19 15:21:17 -06:00
parent 005f43d14e
commit 068d8f29b5
2 changed files with 10 additions and 17 deletions

25
tox.ini
View file

@ -8,25 +8,20 @@ envlist = py36, py37, py38, py39, py310, py311
requires = virtualenv<20.22.0
[testenv]
commands =
pip install -U pip
pip install -U setuptools wheel
pip install -U --upgrade-strategy eager wuttjamaican[db,docs,tests]
pytest {posargs}
extras = db,docs,tests
commands = pytest {posargs}
[testenv:py37]
# nb. newer coverage is causing segfault for this one, so must avoid that
deps = coverage<7.2.4
[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
extras = db,tests
commands = pytest --cov=wuttjamaican --cov-report=html --cov-fail-under=100
[testenv:docs]
basepython = python3.11
extras = db,docs
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
commands = sphinx-build -b html -d {envtmpdir}/doctrees -W -T . {envtmpdir}/docs