34 lines
801 B
INI
34 lines
801 B
INI
|
|
[tox]
|
|
envlist = py36, py37, py38, py39, py310, py311
|
|
|
|
# TODO: can remove this when we drop py36 support
|
|
# nb. need this for testing older python versions
|
|
# https://tox.wiki/en/latest/faq.html#testing-end-of-life-python-versions
|
|
requires = virtualenv<20.22.0
|
|
|
|
[testenv]
|
|
extras = bouncer,db,tests
|
|
commands = pytest {posargs}
|
|
|
|
[testenv:py37]
|
|
# nb. newer libs may cause segfault for this one, so must avoid that
|
|
deps =
|
|
coverage<6.5
|
|
wheel<0.41
|
|
|
|
[testenv:coverage]
|
|
basepython = python3
|
|
deps =
|
|
appy
|
|
invoke
|
|
luigi
|
|
xlrd
|
|
extras = bouncer,db,tests
|
|
commands = pytest --cov=rattail --cov-report=html
|
|
|
|
[testenv:docs]
|
|
basepython = python3
|
|
changedir = docs
|
|
extras = bouncer,db,tests,docs
|
|
commands = sphinx-build -b html -d {envtmpdir}/doctrees -W -T . {envtmpdir}/docs
|