Skip to content

Commit 5c1065c

Browse files
authored
Merge pull request #41 from PyAutoLabs/feature/ci-dedupe
CI: one run per commit (push builds main only)
2 parents 432a55b + 7bfb5fa commit 5c1065c

3 files changed

Lines changed: 33 additions & 3 deletions

File tree

.github/workflows/navigator_check.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,18 @@ name: Navigator Check
55
# PyAutoHands/autohands; this repo only declares which generator project to run.
66
# See PyAutoLabs/PyAutoHands/.github/workflows/navigator_check.yml.
77

8-
on: [push, pull_request]
8+
# One run per commit: PR events carry the CI; pushes only build main
9+
# (Heart's ws_ci gate reads main-HEAD conclusions). Superseded runs are
10+
# cancelled on PR refs only — a cancelled main run would read as red CI
11+
# (cancelled is in Heart's FAILURE_CONCLUSIONS).
12+
on:
13+
push:
14+
branches: [main]
15+
pull_request:
916

17+
concurrency:
18+
group: navigator_check-${{ github.ref }}
19+
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
1020
permissions:
1121
contents: read
1222

.github/workflows/smoke_tests.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,18 @@ name: Smoke Tests
55
# workspace declares its dependency chain and owns its install epilogue
66
# (.github/scripts/smoke_install.sh) and runner (.github/scripts/run_smoke.py).
77

8-
on: [push, pull_request]
8+
# One run per commit: PR events carry the CI; pushes only build main
9+
# (Heart's ws_ci gate reads main-HEAD conclusions). Superseded runs are
10+
# cancelled on PR refs only — a cancelled main run would read as red CI
11+
# (cancelled is in Heart's FAILURE_CONCLUSIONS).
12+
on:
13+
push:
14+
branches: [main]
15+
pull_request:
916

17+
concurrency:
18+
group: smoke_tests-${{ github.ref }}
19+
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
1020
jobs:
1121
smoke:
1222
uses: PyAutoLabs/PyAutoHeart/.github/workflows/smoke-tests.yml@main

.github/workflows/tutorials_complete.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,18 @@ name: Tutorials Complete
66
# terminal section; the check is pure-stdlib and needs no library install.
77
# See scripts/check_tutorials_complete.py.
88

9-
on: [push, pull_request]
9+
# One run per commit: PR events carry the CI; pushes only build main
10+
# (Heart's ws_ci gate reads main-HEAD conclusions). Superseded runs are
11+
# cancelled on PR refs only — a cancelled main run would read as red CI
12+
# (cancelled is in Heart's FAILURE_CONCLUSIONS).
13+
on:
14+
push:
15+
branches: [main]
16+
pull_request:
1017

18+
concurrency:
19+
group: tutorials_complete-${{ github.ref }}
20+
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
1121
jobs:
1222
tutorials-complete:
1323
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)