Skip to content

Run test workflow automatically on PRs and pushes to main - #43

Merged
evandhoffman merged 1 commit into
mainfrom
ci/run-tests-on-pull-requests
Jun 12, 2026
Merged

Run test workflow automatically on PRs and pushes to main#43
evandhoffman merged 1 commit into
mainfrom
ci/run-tests-on-pull-requests

Conversation

@evandhoffman

Copy link
Copy Markdown
Contributor

Problem

.github/workflows/tests.yml was workflow_dispatch-only, so opening a PR ran no automated lint/test check. Merges relied entirely on contributors running pytest/ruff locally (as happened for #35#42).

Fix

  • Trigger the workflow on pull_request (→ main) and push (→ main), keeping workflow_dispatch for manual runs.
  • Add a concurrency group keyed on the ref with cancel-in-progress, so the single self-hosted runner isn't tied up re-testing superseded commits.
  • Move both jobs onto the org's self-hosted Linux x64 runner ([self-hosted, Linux, X64]) per the project runner policy, replacing ubuntu-latest.

Validation

This PR self-validates: the pull_request trigger means the new workflow runs against this very branch. If the checks below go green on the self-hosted runner, the automation works end to end.

Follow-up to consider after this lands: add lint and test as required status checks in branch protection so they actually gate merges (currently the protection requires a review but no status check).

The Tests workflow was workflow_dispatch-only, so PRs got no automated
lint/test check — merges relied entirely on contributors running pytest
and ruff locally. Trigger it on pull_request and push to main (keeping the
manual dispatch), add a concurrency group so the runner isn't tied up on
stale commits, and move the jobs onto the org's self-hosted Linux x64
runner per the project's runner policy.
@evandhoffman
evandhoffman merged commit 4b285b6 into main Jun 12, 2026
2 checks passed
@evandhoffman
evandhoffman deleted the ci/run-tests-on-pull-requests branch June 12, 2026 23:39
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