contextlib2/tox.ini
2024-05-22 20:54:41 +10:00

24 lines
605 B
INI

[tox]
# No Python 3.6 available on current generation GitHub test runners
envlist = py{37,38,39,3.10,py3}
skip_missing_interpreters = True
[testenv]
commands =
coverage run -m unittest discover -t . -s test
coverage report
coverage xml
# mypy won't install on PyPy, so only run the typechecking on CPython
# Typechecking currently fails on 3.10+, so skip it
!pypy3-!py3.10: python -m mypy.stubtest --allowlist dev/mypy.allowlist contextlib2
deps =
coverage
!pypy3: mypy
[gh-actions]
python =
3.7: py37
3.8: py38
3.9: py39
3.10: py3.10
pypy-3.8: pypy3