forked from RedHatQE/openshift-virtualization-tests
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtox.ini
More file actions
102 lines (91 loc) · 2.89 KB
/
tox.ini
File metadata and controls
102 lines (91 loc) · 2.89 KB
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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
[tox]
envlist=pytest-check-x86, pytest-check-arm64, unused-code
skipsdist=True
[testenv]
basepython = python3
[testenv:pytest-check-x86]
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 --tc-file=tests/global_config_x86.py --collect-only
uv run pytest --tc-file=tests/global_config_x86.py --upgrade=cnv --cnv-image=NA --cnv-version=NA --collect-only
uv run pytest --tc-file=tests/global_config_x86.py --upgrade=ocp --ocp-image=NA --collect-only
uv run pytest --tc-file=tests/global_config_x86.py --upgrade=eus --eus-ocp-images=NA,NA --collect-only
uv run pytest --tc-file=tests/global_config_x86.py --upgrade_custom=cnv --cnv-image=NA --cnv-version=NA --collect-only
uv run pytest --tc-file=tests/global_config_x86.py --upgrade_custom=ocp --ocp-image=NA --collect-only
uv run pytest --tc-file=tests/global_config_rh_it.py --collect-only
uv run pytest --tc-file=tests/global_config_x86.py -m smoke --collect-only
uv run pytest --tc-file=tests/global_config_x86.py --tc-format=python --setup-plan
[testenv:pytest-check-arm64]
basepython = python3.12
recreate=True
setenv =
PYTHONPATH = {toxinidir}
LC_ALL = en_US.utf8
LANG = en_US.utf8
UV_PYTHON = python3.12
OPENSHIFT_VIRTUALIZATION_TEST_IMAGES_ARCH = arm64
deps=
uv
commands =
uv run pytest --tc-file=tests/global_config_arm64.py --collect-only -m arm64
# TODO: Add once tests are marked with `s390x`
# [testenv:pytest-check-s390x]
# basepython = python3.12
# recreate=True
# setenv =
# PYTHONPATH = {toxinidir}
# LC_ALL = en_US.utf8
# LANG = en_US.utf8
# UV_PYTHON = python3.12
# OPENSHIFT_VIRTUALIZATION_TEST_IMAGES_ARCH = s390x
# deps=
# uv
# commands =
# uv run pytest --tc-file=tests/global_config_s390x.py --collect-only -m s390x
# 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" {posargs}
#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.19.0,4.19.1,4.19.z,4.20.0" --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_"