summaryrefslogtreecommitdiff
path: root/tox.ini
blob: 84a60498a70d30cb37477d5680f4241e8fed1c31 (plain)
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
[tox]
skip_missing_interpreters = true
envlist =
    py36,py37,py38,py39,
    coverage,
    docs

[testenv]
setenv =
    LC_ALL=C
    LANG=C
    COVERAGE_FILE=.coverage.{envname}
extras =
    tests
commands =
    python --version
    pip freeze
    pytest --cov {posargs:}

[testenv:coverage]
skip_install = true
deps =
    coverage
setenv =
    COVERAGE_FILE=.coverage
commands =
    coverage combine
    coverage xml
    coverage report --show-missing --fail-under=100

[testenv:docs]
basepython = python3.9
whitelist_externals = make
commands =
    make -C docs html BUILDDIR={envdir} "SPHINXOPTS=-W -E"
extras =
    docs