From 3f1355f1dc08f093cf698c5a700bc6157da569f2 Mon Sep 17 00:00:00 2001 From: Will Kahn-Greene Date: Fri, 1 May 2026 10:41:48 -0400 Subject: [PATCH 1/2] fix: rework pip caching This removes the set-output in the workflow which was deprecated in 2022. It also removes actions/cache since actions/setup-python handles pip caching already. --- .github/workflows/test.yml | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index ac286e8e..f21fee09 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -19,20 +19,8 @@ jobs: uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0 with: python-version: ${{ matrix.python-version }} - - - name: Get pip cache dir - id: pip-cache - run: | - echo "::set-output name=dir::$(pip cache dir)" - - - name: Cache - uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5.0.4 - with: - path: ${{ steps.pip-cache.outputs.dir }} - key: - ${{ matrix.os }}-${{ matrix.python-version }}-${{ hashFiles('**/setup.py') }} - restore-keys: | - ${{ matrix.os }}-${{ matrix.python-version }}- + cache: 'pip' + cache-dependency-path: 'requirements-dev.txt' - name: Install dependencies shell: bash From fd837355b2a70e616513579b735f3dfb0cf57a00 Mon Sep 17 00:00:00 2001 From: Will Kahn-Greene Date: Fri, 1 May 2026 11:01:43 -0400 Subject: [PATCH 2/2] fix: reduce redundancy in workflow jobs This fixes CI so it doesn't run all the jobs for "push" and "pull_request" for PRs. It also will cancel any in-progress jobs if I push a new commit. --- .github/workflows/test.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index f21fee09..2be68f3f 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,7 +1,14 @@ --- name: Test -on: [push, pull_request] +on: + push: + branches: [main] + pull_request: + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true jobs: build: