2022-04-14 09:17:18 -04:00
|
|
|
[tox]
|
2022-05-05 08:51:05 -04:00
|
|
|
; On Windows, only CPython >= 3.8 is supported.
|
|
|
|
; All older versions, and PyPy, lack full symlink support.
|
2022-04-14 09:17:18 -04:00
|
|
|
envlist =
|
2022-05-12 16:41:38 -04:00
|
|
|
coverage_erase
|
2023-09-09 20:53:07 -04:00
|
|
|
py{38, 39, 310, 311}-all_platforms
|
2023-09-09 20:39:45 -04:00
|
|
|
py{36, 37}-most_platforms
|
|
|
|
pypy3-most_platforms
|
2022-12-17 15:05:04 -05:00
|
|
|
coverage_report
|
2022-04-14 09:17:18 -04:00
|
|
|
skip_missing_interpreters = true
|
|
|
|
|
|
|
|
|
|
|
|
[testenv]
|
2022-05-05 08:51:05 -04:00
|
|
|
platform =
|
|
|
|
all_platforms: cygwin|darwin|linux|win32
|
|
|
|
most_platforms: cygwin|darwin|linux
|
|
|
|
|
2022-04-14 09:17:18 -04:00
|
|
|
deps =
|
2022-12-17 15:05:04 -05:00
|
|
|
coverage
|
2022-04-14 09:17:18 -04:00
|
|
|
pytest
|
|
|
|
pytest-randomly
|
|
|
|
pyyaml
|
|
|
|
|
|
|
|
commands =
|
2022-12-17 15:05:04 -05:00
|
|
|
coverage run -m pytest tests/
|
2022-05-12 16:41:38 -04:00
|
|
|
|
|
|
|
|
|
|
|
[testenv:coverage_erase]
|
|
|
|
skipsdist = true
|
|
|
|
skip_install = true
|
|
|
|
deps = coverage
|
|
|
|
commands = coverage erase
|
|
|
|
|
|
|
|
|
|
|
|
[testenv:coverage_report]
|
|
|
|
skipsdist = true
|
|
|
|
skip_install = true
|
|
|
|
deps = coverage
|
|
|
|
commands_pre =
|
|
|
|
coverage combine
|
|
|
|
|
|
|
|
commands =
|
|
|
|
coverage report
|
|
|
|
coverage html
|
2022-12-17 15:05:04 -05:00
|
|
|
coverage xml
|
2022-04-30 21:42:36 -04:00
|
|
|
|
|
|
|
|
2022-05-12 16:41:38 -04:00
|
|
|
[coverage:run]
|
|
|
|
branch = true
|
|
|
|
parallel = true
|
|
|
|
source =
|
|
|
|
dotbot/
|
|
|
|
tests/
|
|
|
|
|
|
|
|
|
|
|
|
[coverage:html]
|
|
|
|
directory = htmlcov
|
2022-05-12 17:30:44 -04:00
|
|
|
|
|
|
|
|
|
|
|
[gh-actions]
|
|
|
|
python =
|
|
|
|
; Run on all platforms (Linux, Mac, and Windows)
|
|
|
|
3.8: py38-all_platforms
|
2022-12-17 14:10:17 -05:00
|
|
|
3.9: py39-all_platforms
|
2022-05-12 17:30:44 -04:00
|
|
|
3.10: py310-all_platforms
|
2023-09-09 20:53:07 -04:00
|
|
|
3.11: py311-all_platforms
|
2022-05-12 17:30:44 -04:00
|
|
|
|
|
|
|
; Run on most platforms (Linux and Mac)
|
2022-05-16 09:53:24 -04:00
|
|
|
pypy-3.9: pypy3-most_platforms
|
2022-05-12 17:30:44 -04:00
|
|
|
3.6: py36-most_platforms
|
|
|
|
3.7: py37-most_platforms
|
2023-07-16 12:10:33 -04:00
|
|
|
|
|
|
|
; Disable problem matcher because it causes issues when running in a container;
|
|
|
|
; see https://github.com/ymyzk/tox-gh-actions/issues/126
|
|
|
|
problem_matcher = False
|