-
Notifications
You must be signed in to change notification settings - Fork 43
/
tox.ini
52 lines (47 loc) · 1.86 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
[tox]
env_list =
unit-test, #click-pyyaml{60,latest}-junitparser{31,latest}-pyserde{12,latest}-requests{231,232,latest}-tqdm{465,latest}-humanfriendly{100,latest}-openapi{50,latest}-beartype{17,latest}-prance
[testenv:unit-test]
description = run basic unit test based on latest version of dependencies
commands =
pip install -r tests/requirements-tox.txt
pip install -r tests/requirements-variable-deps.txt
pip list
coverage run -m pytest -c tests/pytest.ini -W ignore::pytest.PytestCollectionWarning tests
allowlist_externals =
cd
[testenv]
description = Run dependencies matrix + full unit test (NOTE: May take time as different versions of each dependencies are tested against each other!)
deps =
click: click==8.0.*
pyyaml-60: pyyaml==6.0.*
pyyaml-latest: pyyaml>=6.0.0,<7.0.0
junitparser-31: junitparser==3.1.*
junitparser-latest: junitparser>=3.1.0,<4.0.0
pyserde-12: pyserde==0.12.*
pyserde-latest: pyserde>=0.12.0,<1.0.0
requests-231: requests==2.31.*
requests-232: requests==2.32.0
requests-latest: requests>=2.31.0,<3.0.0
tqdm-465: tqdm==4.65.*
tqdm-latest: tqdm>=4.65.0,<5.0.0
humanfriendly-100: humanfriendly==10.0.*
humanfriendly-latest: humanfriendly>=10.0.0,<11.0.0
openapi-50: openapi-spec-validator==0.5.*
openapi-latest: openapi-spec-validator>=0.5.0,<1.0.0
beartype-17: beartype==0.17.*
beartype-latest: beartype>=0.17.0,<1.0.0
prance: prance
commands_pre =
pip install -r tests/requirements-tox.txt
#pip install --upgrade pip
commands =
#Run unit test for each unique environment
coverage run -m pytest -c ./tests/pytest.ini -W ignore::pytest.PytestCollectionWarning tests
#Execute End to End tests
#cd tests_e2e && pytest -c ./pytest.ini -W ignore::pytest.PytestCollectionWarning .
allowlist_externals =
pytest
coverage
allure
pip