-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathtox.ini
71 lines (62 loc) · 1.75 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
[tox]
envlist=pytest-check,unused-code
skipsdist=True
[testenv]
basepython = python3
[testenv:pytest-check]
basepython = python3.12
recreate=True
setenv =
PYTHONPATH = {toxinidir}
LC_ALL = en_US.utf8
LANG = en_US.utf8
UV_PYTHON = python3.12
deps=
uv
commands =
uv run pytest --collect-only
uv run pytest --upgrade=cnv --cnv-image=NA --cnv-version=NA --collect-only
uv run pytest --upgrade=ocp --ocp-image=NA --collect-only
uv run pytest --tc-file=tests/global_config_aws.py --collect-only
uv run pytest --tc-file=tests/global_config_rh_it.py --collect-only
uv run pytest --tc-file=tests/global_config.py -m smoke --collect-only
uv run pytest --tc-file=tests/global_config.py --tc-format=python --setup-plan
# Polarion
# Should run on every commit.
[testenv:verify-tc-requirement-polarion]
recreate=True
setenv =
PYTHONPATH = {toxinidir}
deps:
python-utility-scripts
commands =
pyutils-polarion-verify-tc-requirements --project-id "CNV" --branch "origin/main"
# Should run only after merged.
[testenv:mark-automated-polarion]
recreate=True
setenv =
PYTHONPATH = {toxinidir}
deps:
python-utility-scripts
commands =
pyutils-polarion-set-automated --project-id "CNV" --branch "origin/main"
#Jira
[testenv:verify-bugs-are-open]
recreate=True
setenv =
PYTHONPATH = {toxinidir}
deps:
python-utility-scripts
commands =
pip install pip --upgrade
pip install tox --upgrade
pyutils-jira --config-file-path jira.cfg --target-versions "vfuture,4.18.0,4.18.1" --verbose
#Unused code
[testenv:unused-code]
recreate=True
setenv =
PYTHONPATH = {toxinidir}
deps:
python-utility-scripts
commands =
pyutils-unusedcode --exclude-files "pytest_matrix_utils.py" --exclude-function-prefixes "pytest_"