diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index a71f7cfe..7cd6563a 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -21,7 +21,7 @@ jobs: python-version: ${{ matrix.python-version }} - if: matrix.os == 'windows-latest' name: Install dependencies - Windows - run: pip install 'torch>=1,<2' -f https://download.pytorch.org/whl/torch_stable.html + run: pip install torch==1.7.0+cpu torchvision==0.8.1+cpu -f https://download.pytorch.org/whl/torch_stable.html - name: Install package run: pip install invoke .[dev] - name: invoke lint @@ -58,7 +58,7 @@ jobs: python-version: ${{ matrix.python-version }} - if: matrix.os == 'windows-latest' name: Install dependencies - Windows - run: pip install 'torch>=1,<2' -f https://download.pytorch.org/whl/torch_stable.html + run: pip install torch==1.7.0+cpu torchvision==0.8.1+cpu -f https://download.pytorch.org/whl/torch_stable.html - name: Install package and dependencies run: pip install invoke .[test] - name: invoke pytest