Skip to content

Commit

Permalink
Cancel concurrent runs (#35)
Browse files Browse the repository at this point in the history
  • Loading branch information
crusaderky committed Mar 10, 2024
1 parent 98f8c34 commit 8b4b365
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ on:
pull_request:
branches: ['*']

# When this workflow is queued, automatically cancel any previous running
# or pending jobs from the same branch
concurrency:
group: tests-${{ github.ref }}
cancel-in-progress: true

defaults:
run:
shell: bash -l {0}
Expand Down

0 comments on commit 8b4b365

Please sign in to comment.