From aba7e2cbae0b4c8fd885b01b9d3d11f776e4751d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Magnus=20M=C3=BCller?= <67061560+MagMueller@users.noreply.github.com> Date: Mon, 8 Sep 2025 08:52:25 -0700 Subject: [PATCH 1/3] cancel tests on new commit --- .github/workflows/cloud_evals.yml | 5 +++++ .github/workflows/docker.yml | 5 +++++ .github/workflows/lint.yml | 6 ++++++ .github/workflows/package.yaml | 6 ++++++ .github/workflows/publish.yml | 5 +++++ .github/workflows/test.yaml | 5 +++++ 6 files changed, 32 insertions(+) diff --git a/.github/workflows/cloud_evals.yml b/.github/workflows/cloud_evals.yml index 8acb4eaec..850a49915 100644 --- a/.github/workflows/cloud_evals.yml +++ b/.github/workflows/cloud_evals.yml @@ -1,5 +1,10 @@ name: cloud_evals +# Cancel in-progress runs when a new commit is pushed to the same branch/PR +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + on: push: branches: diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 4c505e52a..ccc8fe801 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -1,5 +1,10 @@ name: docker +# Cancel in-progress runs when a new commit is pushed to the same branch/PR +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + on: push: release: diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 44949625d..0e2a50134 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -1,4 +1,10 @@ name: lint + +# Cancel in-progress runs when a new commit is pushed to the same branch/PR +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + on: push: branches: diff --git a/.github/workflows/package.yaml b/.github/workflows/package.yaml index 8b03b19a3..f764dcf11 100644 --- a/.github/workflows/package.yaml +++ b/.github/workflows/package.yaml @@ -1,4 +1,10 @@ name: package + +# Cancel in-progress runs when a new commit is pushed to the same branch/PR +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + on: push: branches: diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index c2f784d05..b1cb93074 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -8,6 +8,11 @@ name: publish +# Cancel in-progress runs when a new commit is pushed to the same branch/PR +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + on: release: types: [published] # publish full release to PyPI when a release is created on Github diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index afd47a9fd..5d6d71d98 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -7,6 +7,11 @@ permissions: statuses: write # Allow writing statuses on PRs discussions: write +# Cancel in-progress runs when a new commit is pushed to the same branch/PR +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + on: push: branches: From 4bc50f37e104211437878c07f0a4d232585c70d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Magnus=20M=C3=BCller?= <67061560+MagMueller@users.noreply.github.com> Date: Mon, 8 Sep 2025 08:53:08 -0700 Subject: [PATCH 2/3] Test cancel --- .github/workflows/cloud_evals.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/cloud_evals.yml b/.github/workflows/cloud_evals.yml index 850a49915..76d9156d7 100644 --- a/.github/workflows/cloud_evals.yml +++ b/.github/workflows/cloud_evals.yml @@ -4,6 +4,7 @@ name: cloud_evals concurrency: group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} cancel-in-progress: true + on: push: From 5c9d7c9a902ac63873ebf829d8debb7a26f6c475 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Magnus=20M=C3=BCller?= <67061560+MagMueller@users.noreply.github.com> Date: Mon, 8 Sep 2025 08:54:01 -0700 Subject: [PATCH 3/3] Test cancel --- .github/workflows/cloud_evals.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/cloud_evals.yml b/.github/workflows/cloud_evals.yml index 76d9156d7..33d5f75c3 100644 --- a/.github/workflows/cloud_evals.yml +++ b/.github/workflows/cloud_evals.yml @@ -5,7 +5,6 @@ concurrency: group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} cancel-in-progress: true - on: push: branches: