Skip to content

Commit

Permalink
Cancel previous tests when pushing to PRs
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobtylerwalls committed Mar 5, 2023
1 parent c356a3c commit 47cb11f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 47cb11f

Please sign in to comment.