-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathtox.ini
58 lines (52 loc) · 1.11 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
56
57
58
[tox]
# Environments to run tests against
envlist = py3{8,9,10,11,12,13},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,12,13}: PYTHONDEVMODE = true
deps =
check-manifest
coverage
pytest
pytest-cov
twine
commands =
# Verify MANIFEST.in
check-manifest
# Run tests & coverage
pytest --cov --cov-report=
# Build the sdist & wheel
python -m build .
# Check the distribution
twine check dist/*
[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