From 8f297ac23d820353eb8d3289fdc98388a8b29810 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Val=C3=A9rian=20Rey?= Date: Mon, 8 Jun 2026 16:43:51 +0200 Subject: [PATCH] Scope torch nightly upgrade to avoid pre-release numpy Bare --upgrade plus --index-url re-resolved every dependency against the pre-release-only nightly channel, pulling in a pre-release numpy. Scope the upgrade to torch/torchvision and use --extra-index-url so numpy stays on its release version. Co-Authored-By: Claude Opus 4.8 --- .github/actions/install-deps/action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/actions/install-deps/action.yml b/.github/actions/install-deps/action.yml index f72caed4..6a6241a4 100644 --- a/.github/actions/install-deps/action.yml +++ b/.github/actions/install-deps/action.yml @@ -54,5 +54,5 @@ runs: if: ${{ inputs.torch_channel == 'nightly' }} shell: bash run: | - uv pip install --pre --upgrade torch torchvision --index-url https://download.pytorch.org/whl/nightly/cpu + uv pip install --pre torch torchvision -P torch -P torchvision --extra-index-url https://download.pytorch.org/whl/nightly/cpu uv run python -c "import torch, torchvision; print('torch:', torch.__version__, '| torchvision:', torchvision.__version__)"