Skip to content

ci: split ci.yml into reusable _checks.yml#19

Merged
lesnik512 merged 1 commit into
mainfrom
ci/split-into-checks
Jun 9, 2026
Merged

ci: split ci.yml into reusable _checks.yml#19
lesnik512 merged 1 commit into
mainfrom
ci/split-into-checks

Conversation

@lesnik512

Copy link
Copy Markdown
Member

Summary

Structural mirror of modern-di's CI shape, matching the rest of the modern-python org repos:

  • ci.yml becomes a thin trigger wrapper (push to main, pull_request, concurrency group) that delegates to _checks.yml.
  • _checks.yml is a reusable workflow (on: workflow_call) holding the lint and pytest jobs.
  • The autosemver-specific action-smoke job stays in ci.yml alongside the checks: wrapper — it exercises uses: ./ against the local checkout (not a candidate for a reusable workflow).

Action pins were already bumped to @v6 / @v4 / @v8.2.0 in an earlier sweep, so this PR is structural only.

Behaviour change

None. Same triggers, same concurrency group, same jobs (lint, pytest matrix, action-smoke), same steps, same matrix. The split adds a workflow_call indirection plus future-proofs the shape so additional callers (nightly schedule, manual dispatch) can reuse the checks without duplicating definitions.

Test plan

  • CI green on PR — lint + pytest (4-Python matrix) run via the checks caller, plus action-smoke (PR-only).

🤖 Generated with Claude Code

Mirror modern-di's structural split: ci.yml becomes a thin trigger
wrapper containing the `checks:` job (delegates to _checks.yml via
workflow_call) plus the autosemver-specific `action-smoke` job
(PR-only, dogfoods the local composite action with dry-run wiring).
_checks.yml holds the lint and pytest jobs.

action-smoke stays in ci.yml rather than _checks.yml because it
exercises `uses: ./` against the local checkout — autosemver-specific,
not a candidate for a reusable workflow.

Action pins were already bumped to v6/v4/v8.2.0 in an earlier sweep,
so this PR is structural only.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@lesnik512 lesnik512 merged commit 7fba4f7 into main Jun 9, 2026
6 checks passed
@lesnik512 lesnik512 deleted the ci/split-into-checks branch June 9, 2026 14:52
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