Skip to content

Commit

Permalink
Cancel Previous runs on CI (#165)
Browse files Browse the repository at this point in the history
Cancel all the previous actions if the CI is updated.
  • Loading branch information
aacostadiaz authored Dec 10, 2024
1 parent d49319f commit d5e2836
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/cuda_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ on:

permissions: {}

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
run-tests:
name: Run cuda tests
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ on:

permissions: {}

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
run-tests:
name: Run tests
Expand Down

0 comments on commit d5e2836

Please sign in to comment.