From 47cb11f4cb01a61f83d915d88e828f103a479980 Mon Sep 17 00:00:00 2001 From: Jacob Walls Date: Sun, 5 Mar 2023 10:15:07 -0500 Subject: Cancel previous tests when pushing to PRs --- .github/workflows/codeql-analysis.yml | 4 ++++ .github/workflows/tests.yaml | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 550ec973e..51c566566 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -23,6 +23,10 @@ on: permissions: contents: read +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + jobs: analyze: name: Analyze diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index dcab2a9a5..3cfca316e 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -19,6 +19,10 @@ env: permissions: contents: read +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + jobs: tests-linux: name: run / ${{ matrix.python-version }} / Linux -- cgit v1.2.1