Repository navigation
ci: skip the test jobs on documentation-only pull requests - #58
Merged
Merged
Conversation
sarseniy
temporarily deployed
to
docs-preview
November 12, 2026 13:59 — with
GitHub Actions
Inactive
|
Docs preview: https://pr-58.eigenkit-docs.pages.dev |
sarseniy
force-pushed
the
ci/docs-only-prs
branch
from
November 12, 2026 14:02
f058a03 to
09e52f3
Compare
sarseniy
temporarily deployed
to
docs-preview
November 12, 2026 14:05 — with
GitHub Actions
Inactive
Branch protection on main required the test jobs of ci.yml, but the pull_request trigger skipped Markdown and docs/ changes. A workflow skipped by a path filter never reports, so the required checks stayed pending and a documentation-only pull request could not merge without a bypass. Drop the path filter from the pull_request trigger. A `changes` job lists the files of the pull request; when they are all Markdown, docs/ or CODEOWNERS, the test jobs are skipped. A `tests-passed` job passes when every test job passed or was skipped, and fails when one failed or was cancelled. Branch protection requires that one check instead of the six matrix legs, which a skipped job never reports. The push trigger keeps its path filter.
sarseniy
force-pushed
the
ci/docs-only-prs
branch
from
November 12, 2026 14:07
09e52f3 to
6922118
Compare
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Branch protection on
mainrequired the test jobs ofci.yml. Itspull_requesttrigger skipped pull requests that change only Markdown ordocs/, and a workflow skipped by a path filter never reports, so those required checks stayed pending forever. Every documentation-only pull request needed an admin bypass to merge.Now
ci.ymlruns on every pull request, and a documentation-only one skips the test jobs:Branch protection should require
tests-passedinstead of the six matrix legs (test / pytest (3.12)…). A skipped job never reports those names, because its matrix is never expanded. A skipped job does report success under its own name, so one aggregate check covers both cases. Adding a Python version or a test job then needs no change to the ruleset.The
pushtrigger keeps its path filter: a documentation-only commit onmaindoes not change the coverage. The stale paragraph indocs-checks.ymlthat said a documentation-only pull request triggers nocijob is removed.Evidence
README.md,test / pytest (3.12)and the other requiredcichecks wait for a status that never comes, and the merge is blocked.After: the same pull request runs
changes(code=false) andtests-passed, two short jobs, and no test job. This can only be observed on the first documentation-only pull request after the merge: a pull request runs theci.ymlof its merge commit.code=trueand the full suite runs as before, withtests-passedon top.README.md, docs/index.md, .github/CODEOWNERS→false;README.md, src/eigenkit/a.py→true;docs.py→true.actionlintandpre-commitpass onci.yml.Merge Danger
Door: two-way
Blast Radius: CI
After the merge, swap the six test checks in the
mainruleset fortests-passed. Until then, documentation-only pull requests stay blocked as before. If the filter misclassifies a change as documentation-only, its tests do not run. Only**.md,docs/**and.github/CODEOWNERScount, the same pathsci.ymlignored before. A failed API call failschanges, and with ittests-passed. A cancelled run failstests-passedinstead of skipping it.