forked from amoat7/workbench_python3.8
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
62 lines (55 loc) · 1.37 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
59
60
61
62
# Tox (https://tox.readthedocs.io/) is a tool for running tests
# in multiple virtualenvs. This configuration file will run the
# test suite on all supported python versions. To use it, "pip install tox"
# and then run "tox" from this directory.
#
# See also https://tox.readthedocs.io/en/latest/config.html for more
# configuration options.
[tox]
# Choose your Python versions. They have to be available
# on the system the tests are run on.
envlist = py37, lint
skip_missing_interpreters = true
[testenv]
commands =
python --version
python -c "from workbench import __version__; print(__version__)"
pytest ./tests/python -m "not smoke" --cov=workbench --cov-report term --cov-append
description = run unittests
deps =
pytest
pytest-cov
depends =
py37: clean
report: py37
[testenv:report]
commands =
coverage report
coverage html
deps = coverage
skip_install = true
[testenv:clean]
commands = coverage erase
deps = coverage
skip_install = true
[testenv:flake8]
commands =
flake8 ./src/workbench
flake8 setup.py
deps =
flake8
skip_install = true
[testenv:pylint]
commands =
pylint-fail-under --fail_under 9.80 workbench setup.py
deps =
-rrequirements.txt
pylint
pylint-fail-under
[testenv:lint]
deps =
{[testenv:flake8]deps}
{[testenv:pylint]deps}
commands =
{[testenv:flake8]commands}
{[testenv:pylint]commands}