Skip to content

ci: skip the build/test matrix on docs-only changes#1163

Merged
dimitri merged 1 commit into
mainfrom
ci/skip-docs-only-changes
Jul 26, 2026
Merged

ci: skip the build/test matrix on docs-only changes#1163
dimitri merged 1 commit into
mainfrom
ci/skip-docs-only-changes

Conversation

@dimitri

@dimitri dimitri commented Jul 26, 2026

Copy link
Copy Markdown
Contributor

main's branch protection requires specific job-name status checks (Style check, pgaftest / *, pytest / *). A top-level push/pull_request paths-ignore would make the whole workflow never run for a docs-only commit, leaving those required checks permanently unreported and the PR stuck — GitHub only treats a skipped job as satisfying a required check, not a workflow that never ran at all.

Adds check_docs_only (same pattern as the existing check_base_changed job) and gates style_checker/check_base_changed on it. Every other job already transitively needs one of those two, and a job automatically skips when any of its needs was skipped, so the whole matrix cascades to skipped (which satisfies required checks) without extra per-job conditions.

Kept separate from #1162 (the docs-only PR that originally motivated this) since a PR that touches .github/workflows/ci.yml itself should always run full CI to validate the workflow change — bundling the two together meant #1162 could never demonstrate the skip. Once this merges, #1162 (and any future docs-only PR) will actually skip the matrix.

main's branch protection requires specific job-name status checks
(Style check, pgaftest / *, pytest / *). A top-level push/pull_request
paths-ignore would make the whole workflow never run for a docs-only
commit, leaving those required checks permanently unreported and the PR
stuck -- GitHub only treats a *skipped* job as satisfying a required
check, not a workflow that never ran at all.

Add check_docs_only (same pattern as the existing check_base_changed
job) and gate style_checker and check_base_changed on it. Every other
job already transitively needs one of those two, and a job automatically
skips when any of its needs was skipped, so the whole matrix cascades to
skipped without extra per-job conditions.
@dimitri dimitri self-assigned this Jul 26, 2026
@dimitri dimitri added docs The documentation needs more work Developer productivity Enhancements to ability to ship quality code labels Jul 26, 2026
@dimitri
dimitri merged commit 51bd563 into main Jul 26, 2026
73 checks passed
@dimitri
dimitri deleted the ci/skip-docs-only-changes branch July 26, 2026 18:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Developer productivity Enhancements to ability to ship quality code docs The documentation needs more work

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant