forked from ecmwf/servicelib
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
49 lines (42 loc) · 903 Bytes
/
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
[pytest]
strict = true
addopts = --cov=servicelib --no-cov-on-fail --cov-append --cov-config=tox.ini
testpaths = tests
[gh-actions]
python =
2.7: py27
3.7: py37, docs
[tox]
envlist = black,py27,py37,docs,coverage-report,coverage-html
isolated_build = True
[testenv:black]
basepython = python3.7
skip_install = true
deps = black
commands = black --check src samples tests
[testenv]
commands =
pyflakes src
python -m pytest {posargs}
depends =
{py27,py37}: black
extras =
tests
[testenv:docs]
basepython = python3.7
extras =
docs
commands =
sphinx-build -n -T -W -b html -d {envtmpdir}/doctrees docs docs/_build/html
[testenv:coverage-report]
basepython = python3.7
deps = coverage[toml]<5.0
skip_install = true
commands =
coverage report
[testenv:coverage-html]
basepython = python3.7
deps = coverage[toml]<5.0
skip_install = true
commands =
coverage html