-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathtox.ini
55 lines (49 loc) · 1.05 KB
/
tox.ini
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
[tox]
# Environments to run tests against
envlist = py3{8,9,10,11},coverage
# Minimum required tox version
#
# The v3.3.0 release is the minimum required for PEP 517/518 support.
minversion = 3.3.0
# Use an isolated build environment
isolated_build = true
# Don't fail on missing interpreters
skip_missing_interpreters = true
[testenv]
passenv =
DRAFTABLE_*
setenv =
COVERAGE_FILE = {toxworkdir}/.coverage.{envname}
py3{8,9,10,11}: PYTHONDEVMODE = true
deps =
check-manifest
coverage
pytest
pytest-cov
commands =
# Verify MANIFEST.in
check-manifest
# Verify setup metadata
python setup.py check -m -s
# Run tests & coverage
pytest --cov --cov-report=
[testenv:codecov]
changedir = {toxworkdir}
skip_install = true
setenv =
COVERAGE_FILE = {toxworkdir}/.coverage
deps =
codecov
coverage
commands =
codecov -X gcov
[testenv:coverage]
changedir = {toxworkdir}
skip_install = true
setenv =
COVERAGE_FILE = {toxworkdir}/.coverage
deps =
coverage
commands =
coverage combine
coverage report