From f2dd4aec3940144cae1eecde391965c6af0a460c Mon Sep 17 00:00:00 2001 From: kaczmarj Date: Thu, 7 Mar 2024 11:36:09 -0500 Subject: [PATCH] use invoke webrequest for windows --- .github/workflows/cli-test-windows.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/cli-test-windows.yml b/.github/workflows/cli-test-windows.yml index 13b574c..4713cc0 100644 --- a/.github/workflows/cli-test-windows.yml +++ b/.github/workflows/cli-test-windows.yml @@ -12,6 +12,7 @@ jobs: python-version: ["3.10"] steps: - name: Cache sample WSI + id: cache-wsi uses: actions/cache@v3 with: path: ~/wsi/ @@ -27,10 +28,11 @@ jobs: python -m pip install torch torchvision --extra-index-url https://download.pytorch.org/whl/cpu python -m pip install . - name: Download sample WSI + if: steps.cache-wsi.outputs.cache-hit != 'true' run: | mkdir -p ~/wsi cd ~/wsi - wget -nc -q https://openslide.cs.cmu.edu/download/openslide-testdata/Aperio/CMU-1.svs + Invoke-WebRequest -URI https://openslide.cs.cmu.edu/download/openslide-testdata/Aperio/CMU-1.svs -OutFile CMU-1.svs cd - - name: Run tests # Go to a different directory to test that WSInfer-MIL still finds everything it needs.