Skip to content

Commit cc6d291

Browse files
authored
add concurrency setting to stop tests when new commits get pushed to PRs (#1801)
1 parent ae580ad commit cc6d291

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed

.github/workflows/cpu-tests.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ on:
1111
pull_request:
1212
branches: [main]
1313

14+
concurrency:
15+
group: ${{ github.workflow }}-${{ github.ref }}
16+
cancel-in-progress: true
17+
1418
jobs:
1519
cpu-tests:
1620
runs-on: ${{ matrix.os }}

.github/workflows/gpu-tests.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ on:
1010
branches: [main]
1111
types: [opened, synchronize, reopened, closed]
1212

13+
concurrency:
14+
group: ${{ github.workflow }}-${{ github.ref }}
15+
cancel-in-progress: true
16+
1317
jobs:
1418
gpu-tests:
1519
runs-on: 2GPU

.github/workflows/lint.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ on:
55
push:
66
branches: [main]
77

8+
concurrency:
9+
group: ${{ github.workflow }}-${{ github.ref }}
10+
cancel-in-progress: true
11+
812
jobs:
913
pre-commit:
1014
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)