Skip to content

Commit

Permalink
add step to cancel running tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dsikka committed Feb 21, 2024
1 parent c23bf47 commit 6e06f71
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .github/workflows/build-wheel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ permissions:
id-token: write
contents: read

concurrency:
cancel-in-progress: true

# if not dev or release, will create a nightly build
# everything is pushed to internal unless created through a nightly scheduled cron job
env:
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/test-unit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ on:
branches:
- '*'

concurrency:
cancel-in-progress: true

jobs:
test-setup:
runs-on: ubuntu-latest
Expand All @@ -19,7 +22,7 @@ jobs:
((git diff --name-only origin/main HEAD | grep -E "[src|tests]/sparsezoo|setup.py")
|| (echo $GITHUB_REF | grep -E "refs/heads/[release/|main]"))
&& echo "::set-output name=output::1" || echo "::set-output name=output::0"
unit-tests:
sanity-tests:
runs-on: ubuntu-latest
env:
SPARSEZOO_TEST_MODE: "true"
Expand Down

0 comments on commit 6e06f71

Please sign in to comment.