Skip to content

Commit 0c91f4d

Browse files
committed
ci: pin uv pip install to python3.12 in test-kernels
The custom container-hook runner used by linux-strix-halo-gpu-rocm-oem exec's commands with a PATH where /usr/bin/python3 (Debian 3.11, PEP 668 externally managed) precedes /usr/local/bin/python3 (3.12). uv pip install --system then resolves the 3.11 interpreter and refuses with "externally managed". Pass --python python3.12 explicitly so uv targets the image's intended interpreter regardless of PATH ordering. Signed-off-by: Matthias Gehre <matthias.gehre@amd.com>
1 parent 83d5d47 commit 0c91f4d

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

.github/workflows/build-rocm-wheels.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -191,21 +191,24 @@ jobs:
191191
192192
- name: Install wheel and test dependencies
193193
run: |
194+
# The custom container-hook runner exec's commands with a PATH where
195+
# /usr/bin/python3 (Debian 3.11, PEP 668 externally managed) precedes
196+
# /usr/local/bin/python3 (3.12). Point uv at python3.12 explicitly.
194197
# Pin torch from the nightly ROCm index *only* (no PyPI
195198
# fallback) so we always get the ROCm wheel.
196-
uv pip install --system \
199+
uv pip install --system --python python3.12 \
197200
--upgrade-package torch \
198201
torch \
199202
--index-url ${{ env.PYTORCH_INDEX_URL }}
200-
uv pip install --system dist/*.whl \
203+
uv pip install --system --python python3.12 dist/*.whl \
201204
pytest pytest-timeout numpy \
202205
tblib transformers huggingface_hub sentencepiece pillow \
203206
--index-url ${{ env.PYTORCH_INDEX_URL }} \
204207
--extra-index-url https://pypi.org/simple/ \
205208
--index-strategy unsafe-first-match
206209
# Nightly torchvision has operator ABI mismatch with nightly torch.
207210
# Our kernel tests don't need it; remove to prevent conftest crash.
208-
uv pip uninstall --system torchvision 2>/dev/null || true
211+
uv pip uninstall --system --python python3.12 torchvision 2>/dev/null || true
209212
210213
- name: Prepare test environment
211214
run: |

0 commit comments

Comments
 (0)