This repository has been archived by the owner on Aug 3, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathtox.ini
55 lines (45 loc) · 1.58 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 (https://tox.readthedocs.io/) is a tool for running test
# 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.
# ###########################################################################
#
# NOTE:
# Tox is used as locally for executing the test cases using a matrix of
# different Python environments. When code changes are pushed to the
# main repo via pull request, the test cases are iterated using Github
# Actions which DOES NOT use Tox. It is import than any changes to how
# Tox runs tests should be replicated in .github/workflows/test.yaml
#
# ###########################################################################
[tox]
envlist = clean, flake8, py35, py36, py37, py38, report
[testenv]
deps =
-r requirements.txt
-r test/requirements.txt
setenv =
PYTHONDONTWRITEBYTECODE = 1
PUREPORT_API_KEY = 0
PUREPORT_API_SECRET = 0
PUREPORT_AUTOMAKE_BINDINGS = 0
depends =
{py35, py36, py37, py38}: clean
report: py38
commands =
pytest --cov='pureport' --cov-append -v test/
[testenv:report]
deps =
coverage
flake8
commands =
coverage report -m
flake8 pureport/ test/ --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
[testenv:clean]
deps = coverage
skip_install = true
commands = coverage erase
[testenv:flake8]
commands =
# stop the build if there are Python syntax errors or undefined names
flake8 pureport/ test/ --count --select=E9,F63,F7,F82 --show-source --statistics