Skip to content

CI: also run the tests for pull requests - #152

Merged
ThomasWaldmann merged 1 commit into
libfuse:mainfrom
ThomasWaldmann:ci-run-on-pull-request
Sep 3, 2026
Merged

ThomasWaldmann merged 1 commit into
libfuse:mainfrom
ThomasWaldmann:ci-run-on-pull-request

Conversation

@ThomasWaldmann

Copy link
Copy Markdown
Collaborator

test.yml only triggers on: [push], so the Test workflow never runs for a
pull request — the only check that shows up on a PR is Codespell (which does
have a pull_request: trigger). Test results for a PR are currently only
visible if the contributor happens to look at the run on their own fork.

This adds a pull_request: trigger for PRs targeting main, and keeps the
existing unrestricted push: trigger so pushing a branch to a fork still runs
the tests before a PR is opened. The added concurrency group keeps only the
most recent run per branch, so an in-repo PR branch (e.g. dependabot's) does
not run the same tests twice for the push and the pull_request event.

The Test workflow is currently failing on main (unused typing.cast
imports, fixed in #151), so it will be red here until that lands.

🤖 Generated with Claude Code

The Test workflow only triggered on push, so pull requests never ran it -
only the Codespell workflow showed up on a PR.

Keeps the push trigger for all branches, so pushing a branch to a fork still
runs the tests before a PR is opened. A concurrency group deduplicates the
push and pull_request runs for the same branch.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@ThomasWaldmann
ThomasWaldmann merged commit 2ef1934 into libfuse:main Sep 3, 2026
1 of 6 checks passed
@ThomasWaldmann
ThomasWaldmann deleted the ci-run-on-pull-request branch September 3, 2026 10:59
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.

1 participant