Skip to content

Commit 17fe9ba

Browse files
committed
Cancel running jobs when a new commit is pushed to a PR
1 parent 1f407db commit 17fe9ba

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/tests.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ on:
99
branches:
1010
- master
1111

12+
concurrency: # https://stackoverflow.com/questions/66335225#comment133398800_72408109
13+
group: ${{ github.workflow }}-${{ github.ref || github.run_id }}
14+
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
15+
1216
jobs:
1317
test-platforms:
1418
# NOTE: this matrix is for testing various combinations of Python and OS

0 commit comments

Comments
 (0)