Commit 6d5cddb
authored
ci(release): give the release job's tests a base interpreter, as compat already has (#200)
v1.5.1 tagged, failed, and deleted its own tag — the gate working. Every
failure was in test/test_cli.py with the same cause:
RuntimeError('Could not find a suitable base Python interpreter ... set the
SYSTEM_PYTHON environment variable to point to a working Python interpreter
that can create virtual environments.')
The venv-building CLI tests run the analyzer, which provisions a virtualenv for
the project under analysis, and inside uv's own venv the base-interpreter
discovery walk has no anchor on a runner.
The compat job directly above already sets SYSTEM_PYTHON and passes; the release
job never did and fails. Same defect as python-sdk#332, and found the same way:
by a tag deleting itself.
The variable has to come from this job's own setup step. steps.py310 belongs to
compat and would expand to an empty string here, and the two jobs use different
interpreters deliberately — compat is 3.10, release is 3.12 because the framework
integration tests are gated python_version >= '3.11'. So the setup step gains an
id and the test step reads that. The path must be absolute: the override is
checked with Path(...).exists() and never searches PATH, which setup-python's
python-path output satisfies.
Closes #1991 parent de9c2ba commit 6d5cddb
1 file changed
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
| 64 | + | |
64 | 65 | | |
65 | 66 | | |
66 | 67 | | |
| |||
99 | 100 | | |
100 | 101 | | |
101 | 102 | | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
102 | 112 | | |
103 | 113 | | |
104 | 114 | | |
| |||
0 commit comments