Skip to content

Commit 47cb11f

Browse files
Cancel previous tests when pushing to PRs
1 parent c356a3c commit 47cb11f

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

.github/workflows/codeql-analysis.yml

+4
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ on:
2323
permissions:
2424
contents: read
2525

26+
concurrency:
27+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
28+
cancel-in-progress: true
29+
2630
jobs:
2731
analyze:
2832
name: Analyze

.github/workflows/tests.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ env:
1919
permissions:
2020
contents: read
2121

22+
concurrency:
23+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
24+
cancel-in-progress: true
25+
2226
jobs:
2327
tests-linux:
2428
name: run / ${{ matrix.python-version }} / Linux

0 commit comments

Comments
 (0)