From 0af124a8a8f601031ef20001fb7d6b3ed1ef966a Mon Sep 17 00:00:00 2001 From: Gregor Lenz Date: Wed, 15 May 2024 10:29:37 +0200 Subject: [PATCH 1/3] shorten GH actions pipeline to three Python versions --- .github/workflows/ci-pipeline.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/ci-pipeline.yml b/.github/workflows/ci-pipeline.yml index ac647e2..db15d85 100644 --- a/.github/workflows/ci-pipeline.yml +++ b/.github/workflows/ci-pipeline.yml @@ -9,7 +9,7 @@ jobs: fail-fast: false matrix: os: [ubuntu-latest, windows-2022] - python-version: ["3.8", "3.9", "3.10", "3.11"] + python-version: ["3.8", "3.10", "3.11"] steps: - uses: actions/checkout@v3 - if: matrix.os == 'ubuntu-latest' @@ -21,7 +21,6 @@ jobs: python-version: ${{ matrix.python-version }} - name: Install requirements run: | - pip install torch torchvision --index-url https://download.pytorch.org/whl/cpu pip install -r test/requirements.txt pip install -r test/torch_requirements.txt pip install . @@ -43,7 +42,6 @@ jobs: python-version: 3.9 - name: Generate coverage report run: | - pip install torch torchvision --index-url https://download.pytorch.org/whl/cpu pip install -r test/requirements.txt pip install -r test/torch_requirements.txt pip install . From b81f8861470cef2277f3debaca6552088da9be38 Mon Sep 17 00:00:00 2001 From: Gregor Lenz Date: Wed, 15 May 2024 15:48:19 +0200 Subject: [PATCH 2/3] add torch requirements to documentation github action --- .github/workflows/ci-pipeline.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci-pipeline.yml b/.github/workflows/ci-pipeline.yml index db15d85..3922aac 100644 --- a/.github/workflows/ci-pipeline.yml +++ b/.github/workflows/ci-pipeline.yml @@ -63,7 +63,7 @@ jobs: python-version: 3.9 - name: Install dependencies run: | - pip install torch torchvision --index-url https://download.pytorch.org/whl/cpu + pip install -r test/torch_requirements.txt pip install -r docs/requirements.txt pip install . - name: Build documentation From 2fb1664043ec74a1d98a33e3cdaf95ceb84ce788 Mon Sep 17 00:00:00 2001 From: Gregor Lenz Date: Wed, 15 May 2024 16:02:11 +0200 Subject: [PATCH 3/3] pin torchvision version to something compatible with torch 2.1 --- .github/workflows/ci-pipeline.yml | 2 +- docs/requirements.txt | 2 -- test/torch_requirements.txt | 1 + 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci-pipeline.yml b/.github/workflows/ci-pipeline.yml index 3922aac..0413a25 100644 --- a/.github/workflows/ci-pipeline.yml +++ b/.github/workflows/ci-pipeline.yml @@ -63,8 +63,8 @@ jobs: python-version: 3.9 - name: Install dependencies run: | - pip install -r test/torch_requirements.txt pip install -r docs/requirements.txt + pip install -r test/torch_requirements.txt pip install . - name: Build documentation run: cd docs && make clean && make html # Use SPHINXOPTS="-W" to fail on warning. diff --git a/docs/requirements.txt b/docs/requirements.txt index 4cc375e..67a09d8 100644 --- a/docs/requirements.txt +++ b/docs/requirements.txt @@ -4,8 +4,6 @@ sphinx-book-theme sphinx-gallery myst_nb pbr -torchvision ipywidgets matplotlib -torchdata sphinx-autoapi diff --git a/test/torch_requirements.txt b/test/torch_requirements.txt index 729804f..fd14302 100644 --- a/test/torch_requirements.txt +++ b/test/torch_requirements.txt @@ -1,4 +1,5 @@ --index-url https://download.pytorch.org/whl/cpu torch==2.1.0 torchaudio==2.1.0 +torchvision==0.16.0 torchdata