| 1 | [tox] |
| 2 | envlist = py3{7,8,9,10,11,12}{,-pytz} |
| 3 | skip_missing_interpreters = true |
| 4 | |
| 5 | |
| 6 | [gh-actions] |
| 7 | python = |
| 8 | 3.7: py37, py37-pytz |
| 9 | 3.8: py38, py38-pytz |
| 10 | 3.9: py39, py39-pytz |
| 11 | 3.10: py310, py310-pytz |
| 12 | 3.11: py311, py311-pytz |
| 13 | 3.12: py312, py312-pytz |
| 14 | |
| 15 | [testenv] |
| 16 | deps = |
| 17 | pytest |
| 18 | pytest-cov |
| 19 | mypy |
| 20 | types-pytz |
| 21 | pytz: pytz |
| 22 | commands = |
| 23 | py.test test_schedule.py schedule -v --cov schedule --cov-report term-missing |
| 24 | python -m mypy -p schedule --install-types --non-interactive |
| 25 | |
| 26 | [testenv:docs] |
| 27 | changedir = docs |
| 28 | deps = -rrequirements-dev.txt |
| 29 | commands = sphinx-build -W -b html -d {envtmpdir}/doctrees . {envtmpdir}/html |
| 30 | |
| 31 | [testenv:format] |
| 32 | deps = -rrequirements-dev.txt |
| 33 | commands = black --check . |
| 34 | |
| 35 | [testenv:setuppy] |
| 36 | deps = -rrequirements-dev.txt |
| 37 | commands = |
| 38 | python setup.py check --strict --metadata --restructuredtext |