-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathtox.ini
More file actions
36 lines (33 loc) · 785 Bytes
/
tox.ini
File metadata and controls
36 lines (33 loc) · 785 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
[tox]
envlist = py3{9, 10, 12, 13, 14}-cov, htmlcov
skip_missing_interpreters = true
[testenv]
deps =
pytest
-rrequirements.txt
cov: coverage>=4.3
install_command =
{envpython} -m pip install -v {opts} {packages}
commands =
# run the test suite against the package installed inside tox env
!cov: pytest {posargs}
# if `*-cov` factor in the tox env name, also collect test coverage
cov: coverage run --parallel-mode -m pytest {posargs}
[testenv:htmlcov]
deps =
coverage>=4.3
skip_install = true
commands =
coverage combine
coverage html
[testenv:codecov]
passenv = *
basepython = {env:TOXPYTHON:python}
deps =
coverage>=4.3
codecov
skip_install = true
ignore_outcome = true
commands =
coverage combine
codecov --env TOXENV