Skip to content

Commit 6852668

Browse files
committed
set environment variable for systemwide installs through uv
1 parent e4c5e99 commit 6852668

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/pytorch-version-tests.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ on:
1313
jobs:
1414
build:
1515
runs-on: ubuntu-latest
16+
env:
17+
UV_SYSTEM_PIP: 1
1618
timeout-minutes: 85
1719
strategy:
1820
max-parallel: 5
@@ -46,16 +48,16 @@ jobs:
4648
run: |
4749
# Use appropriate install index
4850
if [[ "${{ matrix.pytorch-version }}" == 2.* || "${{ matrix.pytorch-version }}" == 1.13* || "${{ matrix.pytorch-version }}" == 1.12* || "${{ matrix.pytorch-version }}" == 1.10* ]]; then
49-
uv pip install --system torch==${{ matrix.pytorch-version }} torchvision --extra-index-url https://download.pytorch.org/whl/cpu
51+
uv pip install torch==${{ matrix.pytorch-version }} torchvision --extra-index-url https://download.pytorch.org/whl/cpu
5052
else
51-
uv pip install --system torch==${{ matrix.pytorch-version }} torchvision
53+
uv pip install torch==${{ matrix.pytorch-version }} torchvision
5254
fi
5355
5456
- name: Install numpy conditionally for PyTorch < 2.3
5557
run: |
5658
version=$(python -c "import torch; print(float('.'.join(torch.__version__.split('.')[:2])))")
5759
if (( $(echo "$version < 2.3" | bc -l) )); then
58-
uv pip install --system "numpy<2.0"
60+
uv pip install "numpy<2.0"
5961
fi
6062
6163
- name: Install Ignite dependencies

0 commit comments

Comments
 (0)