From cdfcc9138ba338d0bc26c31236aee503260ac7a9 Mon Sep 17 00:00:00 2001 From: Michael Howitz Date: Thu, 27 Aug 2026 10:14:12 +0200 Subject: [PATCH] Replace deprecated set-output with GITHUB_OUTPUT Every matrix job emitted a deprecation warning for the pip cache dir step. Also drop matrix.os from the test cache key: the tests job has no os matrix dimension, so it only added an empty segment. --- .github/workflows/docs.yml | 2 +- .github/workflows/test.yml | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 59b81e8..c63d694 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -26,7 +26,7 @@ jobs: - name: Get pip cache dir id: pip-cache run: | - echo "::set-output name=dir::$(pip cache dir)" + echo "dir=$(pip cache dir)" >> "$GITHUB_OUTPUT" - name: Cache uses: actions/cache@v6 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 3258854..d02f2d4 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -47,16 +47,16 @@ jobs: - name: Get pip cache dir id: pip-cache run: | - echo "::set-output name=dir::$(pip cache dir)" + echo "dir=$(pip cache dir)" >> "$GITHUB_OUTPUT" - name: Cache uses: actions/cache@v6 with: path: ${{ steps.pip-cache.outputs.dir }} key: - ${{ matrix.os }}-${{ matrix.python-version }}-${{ matrix.pytest-version }}-v1-${{ hashFiles('**/pyproject.toml') }} + ${{ matrix.python-version }}-${{ matrix.pytest-version }}-v1-${{ hashFiles('**/pyproject.toml') }} restore-keys: | - ${{ matrix.os }}-${{ matrix.python-version }}-${{ matrix.pytest-version }}-v1- + ${{ matrix.python-version }}-${{ matrix.pytest-version }}-v1- - name: Install dependencies run: |