From 6e06f7118a29cf8e6e7125ba5755272cce547db5 Mon Sep 17 00:00:00 2001 From: Dipika Sikka Date: Wed, 21 Feb 2024 21:18:32 +0000 Subject: [PATCH] add step to cancel running tests --- .github/workflows/build-wheel.yml | 3 +++ .github/workflows/test-unit.yaml | 5 ++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-wheel.yml b/.github/workflows/build-wheel.yml index b162013c..78413895 100644 --- a/.github/workflows/build-wheel.yml +++ b/.github/workflows/build-wheel.yml @@ -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: diff --git a/.github/workflows/test-unit.yaml b/.github/workflows/test-unit.yaml index 65ebaa85..891c23dc 100644 --- a/.github/workflows/test-unit.yaml +++ b/.github/workflows/test-unit.yaml @@ -4,6 +4,9 @@ on: branches: - '*' +concurrency: + cancel-in-progress: true + jobs: test-setup: runs-on: ubuntu-latest @@ -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"