Skip to content

Skip CI for README-only and .github-only changes#796

Merged
jackfirth merged 3 commits into
masterfrom
fix-634-ci-paths-ignore
Jul 8, 2026
Merged

Skip CI for README-only and .github-only changes#796
jackfirth merged 3 commits into
masterfrom
fix-634-ci-paths-ignore

Conversation

@jackfirth

@jackfirth jackfirth commented Jul 8, 2026

Copy link
Copy Markdown
Owner

Fixes #634.

The CI workflow ran on every push and pull request, even when the only
changes were to the README or files in the .github directory, which
can't affect the build or test results. Add paths-ignore filters so CI
is skipped when a push or pull request only touches those locations.

Fixes #634.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Resyntax analyzed 0 files in this pull request and found no issues.

jackfirth and others added 2 commits July 8, 2026 00:14
Using paths-ignore skipped the whole CI workflow for README/.github-only
changes, but "Build and Test" is a required status check in the repo's
ruleset. A required check that never runs is never satisfied, so those
pull requests couldn't merge.

Instead of skipping the workflow, always run the "Build and Test" job so
it reports a status, and gate the expensive build and test steps on a
detect-changes job that checks whether anything outside README.md or
.github/ changed. The Code Coverage job (not a required check) is skipped
entirely in that case.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
The Resyntax Analysis workflow installs and builds the package in order
to analyze changed files, which is just as wasteful as running CI for
changes that only touch the README or the .github directory. Add a
paths-ignore filter so it's skipped for those pull requests.

Unlike "Build and Test", this workflow isn't a required status check, so
it can be skipped at the workflow level without blocking merges.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Resyntax analyzed 0 files in this pull request and found no issues.

@jackfirth jackfirth merged commit 5637922 into master Jul 8, 2026
6 checks passed
@jackfirth jackfirth deleted the fix-634-ci-paths-ignore branch July 8, 2026 07:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CI workflow runs too often

1 participant