Skip to content

Commit 69f2feb

Browse files
Cancel test runs on PRs if another commit comes in
1 parent 0dbdd0d commit 69f2feb

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/test.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,13 @@ on:
1313
- "conda-envs/**"
1414
- "codecov.yml"
1515

16+
# Cancels all previous workflow runs for pull requests that have not completed.
17+
concurrency:
18+
# The concurrency group contains the workflow name and the branch name for pull requests
19+
# or the commit hash for any other events.
20+
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.head_ref || github.sha }}
21+
cancel-in-progress: true
22+
1623
jobs:
1724
ubuntu:
1825
strategy:

0 commit comments

Comments
 (0)