contextlib2/tox.ini

25 lines
634 B
INI
Raw Permalink Normal View History

2016-01-12 08:51:30 +00:00
[tox]
2024-05-22 10:20:46 +00:00
# No Python 3.6 available on current generation GitHub test runners
2024-05-22 10:54:41 +00:00
envlist = py{37,38,39,3.10,py3}
2016-04-17 09:06:48 +00:00
skip_missing_interpreters = True
2016-01-12 08:51:30 +00:00
[testenv]
2016-07-26 12:36:15 +00:00
commands =
coverage run -m unittest discover -t . -s test
2016-07-26 12:36:15 +00:00
coverage report
2020-11-23 15:06:51 +00:00
coverage xml
2021-06-26 12:12:55 +00:00
# mypy won't install on PyPy, so only run the typechecking on CPython
2024-05-22 11:09:07 +00:00
# Typechecking is currently failing: https://github.com/jazzband/contextlib2/issues/54
# !pypy3: python -m mypy.stubtest --allowlist dev/mypy.allowlist contextlib2
2016-07-26 12:36:15 +00:00
deps =
coverage
2021-06-26 12:12:55 +00:00
!pypy3: mypy
2020-11-23 14:57:55 +00:00
[gh-actions]
python =
3.7: py37
3.8: py38
3.9: py39
2024-05-22 10:54:41 +00:00
3.10: py3.10
pypy-3.8: pypy3