diff --git a/.github/workflows/cpu-tests.yml b/.github/workflows/cpu-tests.yml index cf0cda7578..68a3112813 100644 --- a/.github/workflows/cpu-tests.yml +++ b/.github/workflows/cpu-tests.yml @@ -11,6 +11,10 @@ on: pull_request: branches: [main] +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: cpu-tests: runs-on: ${{ matrix.os }} diff --git a/.github/workflows/gpu-tests.yml b/.github/workflows/gpu-tests.yml index 2879dfca90..0d0fd58553 100644 --- a/.github/workflows/gpu-tests.yml +++ b/.github/workflows/gpu-tests.yml @@ -10,6 +10,10 @@ on: branches: [main] types: [opened, synchronize, reopened, closed] +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: gpu-tests: runs-on: 2GPU diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index 03f9ffff26..8c6387e79a 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -5,6 +5,10 @@ on: push: branches: [main] +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: pre-commit: runs-on: ubuntu-latest