-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathtox.ini
82 lines (71 loc) · 1.73 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
[vars]
SOURCE = operator_manifest
TEST_DIR = tests
[tox]
skip_missing_interpreters = true
envlist = flake8,py36,py37,py38,py39
downloadcache = {toxworkdir}/_download/
[gh-actions]
python =
3.6: py36
3.7: py37
3.8: py38
3.9: py39
[testenv]
usedevelop = true
basepython =
flake8: python3.9
py36: python3.6
py37: python3.7
py38: python3.8
py39: python3.9
deps =
-rrequirements-test.txt
pytest_command =
pytest -vv \
--ignore tests/integration \
--cov-config .coveragerc --cov=operator_manifest --cov-report term \
--cov-report xml --cov-report html {posargs}
[testenv:flake8]
description = PEP8 checks [Mandatory]
skip_install = true
deps =
flake8==3.7.9
flake8-docstrings==1.5.0
commands =
flake8 --ignore=D,W503 {[vars]SOURCE} {[vars]TEST_DIR}
[testenv:py36]
description = Python 3.6 unit tests [Mandatory]
commands =
{[testenv]pytest_command}
[testenv:py37]
description = Python 3.7 unit tests [Mandatory]
commands =
{[testenv]pytest_command}
[testenv:py38]
description = Python 3.8 unit tests [Mandatory]
commands =
{[testenv]pytest_command}
[testenv:py39]
description = Python 3.9 unit tests [Mandatory]
commands =
{[testenv]pytest_command}
[testenv:integration]
description = Integration tests
basepython = python3.9
deps =
-r tests/integration/requirements.txt
passenv = AUTHFILE_PATH
changedir = tests/integration
commands =
pytest -vv {posargs:test.py}
[flake8]
ignore = D100,D104,D105,W503
max-line-length = 100
per-file-ignores =
# Ignore missing docstrings in the tests and migrations
tests/*:D103
# Ignore long lines and wrongly indented continuation lines in int. tests
tests/integration/*:E122,E501
[pytest]
log_level = NOTSET