From c754b72ce704c2ac0c3643d4e0b9e2db6d70204b Mon Sep 17 00:00:00 2001 From: Philip Hackstock <20710924+phackstock@users.noreply.github.com> Date: Tue, 3 Sep 2024 11:39:15 +0200 Subject: [PATCH 1/4] Bring back Windows tests --- .github/workflows/pytest.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pytest.yml b/.github/workflows/pytest.yml index 3b1f9f38..0a788026 100644 --- a/.github/workflows/pytest.yml +++ b/.github/workflows/pytest.yml @@ -15,7 +15,7 @@ jobs: shell: bash strategy: matrix: - os: ["macos", "ubuntu"] + os: ["macos", "ubuntu", "windows"] # keep consistent with py-version badge in README.md and docs/index.rst python-version: ["3.10", "3.11", "3.12"] fail-fast: false From 501df76680b73e6d52a3af1f8c4e58ae5e39300f Mon Sep 17 00:00:00 2001 From: Philip Hackstock <20710924+phackstock@users.noreply.github.com> Date: Tue, 3 Sep 2024 11:42:07 +0200 Subject: [PATCH 2/4] Use windows-latest in GitHub action --- .github/workflows/pytest.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pytest.yml b/.github/workflows/pytest.yml index 0a788026..c09872c7 100644 --- a/.github/workflows/pytest.yml +++ b/.github/workflows/pytest.yml @@ -15,7 +15,7 @@ jobs: shell: bash strategy: matrix: - os: ["macos", "ubuntu", "windows"] + os: ["macos", "ubuntu", "windows-latest"] # keep consistent with py-version badge in README.md and docs/index.rst python-version: ["3.10", "3.11", "3.12"] fail-fast: false From 2bab463ac18e6a15afa870fd1f094fe93ad390fc Mon Sep 17 00:00:00 2001 From: Philip Hackstock <20710924+phackstock@users.noreply.github.com> Date: Fri, 6 Sep 2024 15:22:19 +0200 Subject: [PATCH 3/4] Change back to windows (without '-latest') --- .github/workflows/pytest.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pytest.yml b/.github/workflows/pytest.yml index c09872c7..0a788026 100644 --- a/.github/workflows/pytest.yml +++ b/.github/workflows/pytest.yml @@ -15,7 +15,7 @@ jobs: shell: bash strategy: matrix: - os: ["macos", "ubuntu", "windows-latest"] + os: ["macos", "ubuntu", "windows"] # keep consistent with py-version badge in README.md and docs/index.rst python-version: ["3.10", "3.11", "3.12"] fail-fast: false From 99b0708fd11b9f99878a462dbc6dd7f6bcc7bf6e Mon Sep 17 00:00:00 2001 From: Philip Hackstock <20710924+phackstock@users.noreply.github.com> Date: Mon, 16 Sep 2024 15:19:14 +0200 Subject: [PATCH 4/4] Change venv caching for Windows --- .github/workflows/pytest.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pytest.yml b/.github/workflows/pytest.yml index 0a788026..bed4dc56 100644 --- a/.github/workflows/pytest.yml +++ b/.github/workflows/pytest.yml @@ -44,10 +44,10 @@ jobs: # load cached venv if cache exists #---------------------------------------------- - name: Load cached venv - id: cached-poetry-dependencies + id: cached-pip-wheels uses: actions/cache@v4 with: - path: .venv + path: ~/.cache key: venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }} #---------------------------------------------- # install dependencies if cache does not exist