diff --git a/.github/workflows/cuda_test.yml b/.github/workflows/cuda_test.yml index 2b839dcfa7..c4908b943f 100644 --- a/.github/workflows/cuda_test.yml +++ b/.github/workflows/cuda_test.yml @@ -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 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 33b255c942..6315031acf 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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