Skip to content

feat(template)!: replace lint and test workflows with a single ci.yml - #35

Merged
Andreas-Garcia merged 3 commits into
mainfrom
feature/template-v6-34
Dec 2, 2026
Merged

Andreas-Garcia merged 3 commits into
mainfrom
feature/template-v6-34

Conversation

@Andreas-Garcia

Copy link
Copy Markdown
Member

Summary

Template v6: consumers get one Copier-managed ci.yml calling the reusable workflows of github-workflows, and scripts/check.sh [lint|test] as the single validation command.

Issues

Refs #34
Refs #33

Changes

  • scripts/check.sh gains lint and test targets; no argument runs both, anything else exits 2.
  • Ruff and mypy are local pre-commit hooks run through uv, so their versions come from uv.lock; coverage options (single src root, namespace packages included) and [tool.mypy] files move into the starter pyproject.toml.
  • New managed template/.github/workflows/ci.yml.jinja: route, lint, pytest, coverage and the scoped Tests success gate. The github-workflows pins are SHA 00092729e18625c0a305c96ec35d0247fdc78868 (main, not released yet).
  • Removed: lint.yml, test.yml, reusable-pre-commit.yml, and the reusable_lint and test_workflow questions.
  • Docs, migration guide (v5 to v6) and agent rules updated.

Test plan

  • bash scripts/tests/agent-template.sh <engine>/check-project-agents.py: pass.

  • python3 scripts/tests/test_release_*.py: pass.

  • Rendered project with a typed package and a test: bash scripts/check.sh passes and writes coverage.xml; actionlint accepts the rendered ci.yml.

  • copier copy --vcs-ref HEAD then bash scripts/check.sh lint: pass.

  • copier update from v5.3.1 removes lint.yml and test.yml, local edits included (documented).

  • Rendered project: a module no test imports, in a directory without __init__.py, appears in coverage.xml; the source = ["."] variant with the documented omit excludes .venv and tests.

Screenshots

N/A

Risk

Intent change, depth deep: public contract break (removed files and questions, renamed required status contexts). python -P can break repositories that import from their root (migration guide, step 6).

Pre-existing, not addressed here: a fresh render fails check.sh until a test exists (pytest exit 5); the starter pyproject.toml cannot build a flat-layout package.

How to revert

Revert the squash commit and release a new major or point adopters back to v5.3.1.

Deployment notes

  • Merging publishes v6.0.0 (Release Please auto-merge).
  • The rendered gate requires the github-config checker change (BehindTheMusicTree/github-config#158, merged).
  • Adopters follow docs/migration-guide.md, including required status checks.

Post-deploy verification

First adopter (geography, #33): route/needs behaviour of the pr-route.yml caller on a real run, and the required-gates audit passes.

🤖 Generated with Claude Code

Andreas-Garcia and others added 3 commits December 2, 2026 20:28
The template now renders one Copier-managed ci.yml that calls the
reusable workflows of github-workflows, with a scoped "Tests success"
gate, and scripts/check.sh gains lint and test targets.

BREAKING CHANGE: lint.yml, test.yml, reusable-pre-commit.yml and the
reusable_lint and test_workflow questions are removed; copier update
deletes the two workflows, local edits included. Required status checks
change. See docs/migration-guide.md.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…migration

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…ages

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@Andreas-Garcia
Andreas-Garcia enabled auto-merge (squash) December 2, 2026 19:39
@Andreas-Garcia
Andreas-Garcia merged commit e72aa79 into main Dec 2, 2026
8 checks passed
@Andreas-Garcia
Andreas-Garcia deleted the feature/template-v6-34 branch December 2, 2026 20:35
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