Repository navigation
Add CI that tests only changed packages and their dependents - #2
Merged
Merged
Conversation
Lint (ruff), type check (mypy) across the repo, and run pytest per workspace member for members affected by the change, computed from the uv workspace dependency graph by scripts/ci/affected.py. Uses setup-uv caching keyed on uv.lock and a single CI OK job for branch protection. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SE2PhJELRyWZhRxAGNXECc
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.
Requested by Sovik · project thread
Builds on the workspace scaffold from #1 (now merged).
What it does
.github/workflows/ci.yml, on pull requests, pushes tomainand manual dispatch:scripts/ci/affected.py(stdlib only) reads[tool.uv.workspace]members and each member's dependencies, diffs against the PR base (or the previousmaincommit on push), and selects changed members plus everything that depends on them transitively. Shared files outside a member (rootpyproject.toml,uv.lock, workflow) select every member; Markdown,docs/and LICENSE select none.ruff check,ruff format --check,mypy(strict) over the whole repo.pytestmatrix job per affected member. "No tests collected" isn't treated as a failure.astral-sh/setup-uvkeyed onuv.lock, andUV_LOCKED=1so a stale lockfile fails the build.Also adds
scriptsto mypy'sfilesand a CI section to the README.Checked
Test core,Test cliandCI OK(all members ran because this PR touches the rootpyproject.toml).affected.py: change inpackages/coreselectscoreandcli; change inapps/cliselects onlycli;uv.lockselects all; README-only selects none.🤖 Generated with Claude Code
https://claude.ai/code/session_01SE2PhJELRyWZhRxAGNXECc