From d5e2836341f41f78dfa387a2cb6434b6de369fd1 Mon Sep 17 00:00:00 2001 From: Alejandro Acosta Date: Tue, 10 Dec 2024 18:25:14 +0000 Subject: [PATCH] Cancel Previous runs on CI (#165) Cancel all the previous actions if the CI is updated. --- .github/workflows/cuda_test.yml | 4 ++++ .github/workflows/test.yml | 4 ++++ 2 files changed, 8 insertions(+) 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