mirror of
https://github.com/jazzband/contextlib2.git
synced 2026-03-16 21:50:24 +00:00
* Add Python 3.11 and 3.12 to CI (adjusting affected test cases) * Add Python 3.11 and 3.12 to package metadata * Drop Python 3.6 from package metadata Note: typechecking is still disabled in CI for now
26 lines
678 B
INI
26 lines
678 B
INI
[tox]
|
|
# No Python 3.6 available on current generation GitHub test runners
|
|
envlist = py{37,38,39,3.10,3.11,3.12,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 is currently failing: https://github.com/jazzband/contextlib2/issues/54
|
|
# !pypy3: 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
|
|
3.11: py3.11
|
|
3.12: py3.12
|
|
pypy-3.8: pypy3
|