Skip to content

Commit 65aea97

Browse files
authored
Update tests.yml
Attempt to work around flaky azure ubuntu mirrors
1 parent dd60c45 commit 65aea97

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/tests.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,10 @@ jobs:
4040
- name: Install torch on ubuntu
4141
if: startsWith(matrix.os, 'ubuntu')
4242
run: |
43-
pip install --no-cache-dir torch==${{ matrix.torch }}+cpu torchvision==${{ matrix.torchvision }}+cpu -f https://download.pytorch.org/whl/torch_stable.html
43+
sudo sed -i 's/azure\.//' /etc/apt/sources.list
4444
sudo apt update
4545
sudo apt install -y google-perftools
46+
pip install --no-cache-dir torch==${{ matrix.torch }}+cpu torchvision==${{ matrix.torchvision }}+cpu -f https://download.pytorch.org/whl/torch_stable.html
4647
- name: Install requirements
4748
run: |
4849
pip install -r requirements.txt

0 commit comments

Comments
 (0)