diff --git a/.github/workflows/full-test.yml b/.github/workflows/full-test.yml index 11200916..e3e6034b 100644 --- a/.github/workflows/full-test.yml +++ b/.github/workflows/full-test.yml @@ -53,6 +53,9 @@ jobs: elif [ "$RUNNER_OS" == "Windows" ]; then if [[ "$TORCHVISION_VER" == "latest" && "$PYTORCH_VER" == "latest" ]]; then conda install pytorch torchvision cpuonly pillow=6 -c pytorch + elif [[ "$TORCHVISION_VER" == "0.9."* || "$TORCHVISION_VER" == "0.10."* ]]; then + conda install pillow=6 -c conda-forge + conda install pytorch=$PYTORCH_VER torchvision=$TORCHVISION_VER cpuonly -c pytorch else conda install pytorch=$PYTORCH_VER torchvision=$TORCHVISION_VER cpuonly pillow=6 -c pytorch fi diff --git a/.github/workflows/unit-test.yml b/.github/workflows/unit-test.yml index adbc263f..399c2c0d 100644 --- a/.github/workflows/unit-test.yml +++ b/.github/workflows/unit-test.yml @@ -47,6 +47,9 @@ jobs: elif [ "$RUNNER_OS" == "Windows" ]; then if [[ "$TORCHVISION_VER" == "latest" && "$PYTORCH_VER" == "latest" ]]; then conda install pytorch torchvision cpuonly pillow=6 -c pytorch + elif [[ "$TORCHVISION_VER" == "0.9."* || "$TORCHVISION_VER" == "0.10."* ]]; then + conda install pillow=6 -c conda-forge + conda install pytorch=$PYTORCH_VER torchvision=$TORCHVISION_VER cpuonly -c pytorch else conda install pytorch=$PYTORCH_VER torchvision=$TORCHVISION_VER cpuonly pillow=6 -c pytorch fi