-
Notifications
You must be signed in to change notification settings - Fork 5
/
tox.ini
59 lines (53 loc) · 1.11 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
[tox]
envlist = lint, test, srclint
minversion = 3.25.0
skipsdist = True
[testenv]
basepython = python3.6
lint_paths =
chaos_runner.py
event.py
failure.py
failure_ocs.py
kube.py
log_gather.py
log_gather_ocs.py
osio.py
osio-workload/workload.py
workload_runner.py
util.py
src_deps =
-r requirements.txt
test_base_deps =
pytest==7.0.1
[testenv:lint]
deps =
{[testenv]src_deps}
mypy==0.950
pylint==2.13.9
commands =
pylint {[testenv]lint_paths}
mypy --strict {[testenv]lint_paths}
[testenv:test]
deps =
{[testenv]src_deps}
{[testenv]test_base_deps}
pytest-benchmark==3.4.1
commands =
pytest
[testenv:kubetest]
deps =
{[testenv]src_deps}
{[testenv]test_base_deps}
commands =
pytest --run-kube-tests
passenv = KUBECONFIG
[testenv:srclint]
allowlist_externals={toxinidir}/.travis/pre-commit.sh
commands =
{toxinidir}/.travis/pre-commit.sh
passenv = *
[pytest]
addopts = --strict-markers --doctest-modules
markers =
kube_required: Tests that require access to a kube/openshift cluster