From b1be4850f62577c0a3866ad8defc8464afd48552 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Esteban=20Zim=C3=A1nyi?= Date: Thu, 22 Oct 2026 15:43:02 +0200 Subject: [PATCH] Cancel the test run of a superseded pull request head A new push to a pull request cancels the test run of its previous head, so the macOS runners an organization shares test only the head a pull request carries. A push to master or to a stable branch is grouped by its own commit, so every commit there keeps its run. --- .github/workflows/test.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 74d3e14c..0e9ce983 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -16,6 +16,12 @@ on: - "README.md" - ".github/ISSUE_TEMPLATE/**" +# A new push to a pull request cancels the run of its previous head; a push to a branch runs on +# its own commit, so every commit of master and of a stable branch keeps its run. +concurrency: + group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.ref || github.sha }} + cancel-in-progress: ${{ github.event_name == 'pull_request' }} + jobs: test: name: Test PyMEOS - Python ${{ matrix.python-version }} on ${{ matrix.os }}