diff --git a/.github/workflows/pr_quality.yml b/.github/workflows/pr_quality.yml index 5fa8cda3..5a850bea 100644 --- a/.github/workflows/pr_quality.yml +++ b/.github/workflows/pr_quality.yml @@ -8,6 +8,10 @@ on: branches: - main +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} + cancel-in-progress: true + jobs: check_code_quality: runs-on: ubuntu-latest diff --git a/.github/workflows/pr_tests.yml b/.github/workflows/pr_tests.yml index 9dbbe4a4..1208a0d2 100644 --- a/.github/workflows/pr_tests.yml +++ b/.github/workflows/pr_tests.yml @@ -5,6 +5,10 @@ on: branches: - main +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} + cancel-in-progress: true + env: HF_HOME: /mnt/cache OMP_NUM_THREADS: 8