1
0
Fork 0
mirror of synced 2024-11-23 00:35:34 -05:00
dotbot/tox.ini

79 lines
1.5 KiB
INI
Raw Normal View History

[tox]
; On Windows, only CPython >= 3.8 is supported.
; All older versions, and PyPy, lack full symlink support.
envlist =
2022-05-12 16:41:38 -04:00
coverage_erase
py{38, 39, 310}-all_platforms
py{27, 35, 36, 37}-most_platforms
pypy{2, 3}-most_platforms
2022-12-17 15:05:04 -05:00
coverage_report
skip_missing_interpreters = true
[testenv]
platform =
all_platforms: cygwin|darwin|linux|win32
most_platforms: cygwin|darwin|linux
deps =
2022-12-17 15:05:04 -05:00
coverage
pytest
pytest-randomly
pyyaml
mock; python_version == "2.7"
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-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
3.9: py39-all_platforms
2022-05-12 17:30:44 -04:00
3.10: py310-all_platforms
; Run on most platforms (Linux and Mac)
2022-05-16 09:53:24 -04:00
pypy-2.7: pypy2-most_platforms
pypy-3.9: pypy3-most_platforms
2022-05-12 17:30:44 -04:00
2.7: py27-most_platforms
3.5: py35-most_platforms
3.6: py36-most_platforms
3.7: py37-most_platforms
; 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