Skip to content

Commit 4eb5ace

Browse files
committed
Speed up pyN-check-uc jobs
...by skipping actual installation. We only need to check if they are co-installable via metadata. We don't need to actually install them. This will make the job much easier to run in environments where bindep hasn't been run. Change-Id: Iaa7f02ec9d1e734884b1329e2b177964f54d64df Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
1 parent 5c20704 commit 4eb5ace

File tree

1 file changed

+12
-8
lines changed

1 file changed

+12
-8
lines changed

tox.ini

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,23 +13,27 @@ commands =
1313

1414
[testenv:py310-check-uc]
1515
basepython = python3.10
16-
deps = -r{toxinidir}/upper-constraints.txt
17-
commands = python -c 'print("done")'
16+
skip_install = true
17+
deps =
18+
commands = python -m pip install --dry-run -r{toxinidir}/upper-constraints.txt
1819

1920
[testenv:py311-check-uc]
2021
basepython = python3.11
21-
deps = -r{toxinidir}/upper-constraints.txt
22-
commands = python -c 'print("done")'
22+
skip_install = true
23+
deps =
24+
commands = {[testenv:py310-check-uc]commands}
2325

2426
[testenv:py312-check-uc]
2527
basepython = python3.12
26-
deps = -r{toxinidir}/upper-constraints.txt
27-
commands = python -c 'print("done")'
28+
skip_install = true
29+
deps =
30+
commands = {[testenv:py310-check-uc]commands}
2831

2932
[testenv:py313-check-uc]
3033
basepython = python3.13
31-
deps = -r{toxinidir}/upper-constraints.txt
32-
commands = python -c 'print("done")'
34+
skip_install = true
35+
deps =
36+
commands = {[testenv:py310-check-uc]commands}
3337

3438
[testenv:venv]
3539
commands = {posargs}

0 commit comments

Comments
 (0)