Skip to content

Commit c7b11c9

Browse files
committed
Add concurrency to testing CI workflow
Introduce a concurrency block to the testing CI workflow so runs for the same PR are grouped and previous in-progress jobs are cancelled when a new update is pushed. The group is keyed by workflow and pull request number (ci-${{ github.workflow }}-pr-${{ github.event.pull_request.number }}) to avoid redundant CI runs and save resources.
1 parent e517aed commit c7b11c9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/testing-ci.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ on:
44
pull_request:
55
types: [opened, synchronize, reopened]
66

7+
concurrency:
8+
group: ci-${{ github.workflow }}-pr-${{ github.event.pull_request.number }}
9+
cancel-in-progress: true
10+
711
jobs:
812
unit:
913
name: Unit + Smoke (no hardware) • ${{ matrix.os }} • py${{ matrix.python }}

0 commit comments

Comments
 (0)