From 65aea97067994110e8e0b28bb573970c44a67340 Mon Sep 17 00:00:00 2001 From: Ross Wightman Date: Thu, 12 Jan 2023 21:31:44 -0800 Subject: [PATCH] Update tests.yml Attempt to work around flaky azure ubuntu mirrors --- .github/workflows/tests.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 5690c88c..70352d0a 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -40,9 +40,10 @@ jobs: - name: Install torch on ubuntu if: startsWith(matrix.os, 'ubuntu') run: | - pip install --no-cache-dir torch==${{ matrix.torch }}+cpu torchvision==${{ matrix.torchvision }}+cpu -f https://download.pytorch.org/whl/torch_stable.html + sudo sed -i 's/azure\.//' /etc/apt/sources.list sudo apt update sudo apt install -y google-perftools + pip install --no-cache-dir torch==${{ matrix.torch }}+cpu torchvision==${{ matrix.torchvision }}+cpu -f https://download.pytorch.org/whl/torch_stable.html - name: Install requirements run: | pip install -r requirements.txt