ci: extract reusable test workflow (closes #8)#9
Merged
ryanmcmillan merged 1 commit intomainfrom Apr 14, 2026
Merged
Conversation
Eliminates the drift trap that caused the v0.2.1 first-publish failure when pytest-asyncio was added to ci.yml only. Single source of truth for install + test in test.yml; both callers pick up dep changes automatically. - Create .github/workflows/test.yml (workflow_call, parametrized on python-versions JSON array, defaults to 3.9-3.13). - ci.yml (PR gate) now calls the reusable with default matrix. - publish.yml (tag gate) now calls the reusable with the reduced 3.9/3.11/3.13 matrix matching its previous behavior, then gates the publish job on it. Closes #8. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
There was a problem hiding this comment.
Your free trial has ended. If you'd like to continue receiving code reviews, you can add a payment method here.
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
Eliminates the drift trap that caused the `v0.2.1` first-publish failure when `pytest-asyncio` was added to `ci.yml` only.
Before
`ci.yml` and `publish.yml` each carried their own install + test steps. Dep changes had to update both files in lockstep.
After
`test.yml` is the single source of install + test. Both callers (`ci.yml` for PRs, `publish.yml` for tags) use `uses: ./.github/workflows/test.yml`.
`test.yml` is parametrized on `python-versions` (JSON array), so the reduced 3.9/3.11/3.13 matrix in publish.yml keeps its previous behavior.
Test plan
Closes #8.
Sibling refactors coming in:
🤖 Generated with Claude Code