Skip to content

Adopt the shared ucgmsim/meta-ci-action workflows - #218

Open
lispandfound wants to merge 1 commit into
no_parallelfrom
meta-ci
Open

Adopt the shared ucgmsim/meta-ci-action workflows#218
lispandfound wants to merge 1 commit into
no_parallelfrom
meta-ci

Conversation

@lispandfound

Copy link
Copy Markdown
Contributor

Stacked on #217 (no_parallel). First of three.

Swaps this repo's hand-rolled CI for the shared reusable workflows in
ucgmsim/meta-ci-action.

Removed

Workflow Why
lint.yml ruff, clippy, ty, deptry and numpydoc all live in the shared ci.yml.
test.yml pytest, the coverage gate and cargo test likewise.
git-extension.yml Dropped as asked. It rewrote git+https://… project dependencies to end in .git and pushed the result back as a REQUEST_CHANGES review; no dependency in pyproject.toml is a git URL any more.

publish-PyPI.yml and wiki.yml are untouched — neither overlaps the shared workflow.

Added

  • .github/workflows/ci.yml — calls the shared ci.yml with package-dir: IM, uv-extra-args: "--all-extras", and the coverage gate the old test.yml had (--cov=IM, --fail-under=95).
  • .github/workflows/claude-review.yml — the thin issue_comment wrapper for the on-demand @claude review bot. Needs CLAUDE_CODE_OAUTH_TOKEN set as a repo or org secret.

Notes

  • Pinned to @main, not @v1: the v1 tag predates the Cargo.toml-gated Rust jobs, and this repo ships the IM._core crate under src-rust/.
  • --all-extras without --dev: dev, test and types are [project.optional-dependencies] extras here, not a [dependency-groups] table, so --dev would be a no-op.
  • Per the migration notes, the one CLI argument baked into the old workflow (deptry . -ddg test,dev,types) moves into [tool.deptry] in pyproject.toml, under the option's current non-deprecated spelling.

CI will be red on this PR

That is expected and not caused by this change. no_parallel is already red on four of its five jobs (dependencies, numpydoc, test, typecheck — see #217), and the shared workflow additionally adds cargo fmt --check and cargo test --doc, which this repo has never run. Getting all of it green is PR 2 in the stack.

🤖 Generated with Claude Code

lint.yml (ruff, clippy, ty, deptry, numpydoc) and test.yml (pytest,
coverage, cargo test) are superseded by the shared reusable workflow, which
runs the same tools plus `cargo fmt --check` and `cargo test --doc`.

git-extension.yml goes too, as asked: it rewrote `git+https://...` project
dependencies to carry a `.git` suffix and pushed the result back as a
REQUEST_CHANGES review. No project dependency is a git URL any more, so it
had nothing left to check.

Kept publish-PyPI.yml and wiki.yml — neither overlaps the shared workflow.

The call pins @main rather than @v1: the v1 tag predates the Cargo.toml-gated
Rust jobs, and this repo ships the IM._core crate under src-rust/.

Per the migration notes, the one hardcoded CLI argument in the old workflows
(`deptry . -ddg test,dev,types`) moves into [tool.deptry] in pyproject.toml,
under the current spelling of that option, so the shared workflow can invoke
deptry with no arguments.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
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