ci: extract reusable checks workflow + add scheduled dependency check#214
Merged
Conversation
Extract the lint + pytest jobs from ci.yml into a reusable _checks.yml (on: workflow_call); ci.yml now calls it with secrets: inherit so the codecov upload keeps working. Add scheduled.yml that runs the same _checks on a Monday 06:00 UTC cron (plus manual dispatch) and, on a scheduled failure, opens or updates a single 'scheduled-failure' tracking issue. Mirrors the pattern in modern-di and the other modern-python repos. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Codecov Report✅ All modified and coverable lines are covered by tests.
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
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.
Brings
that-dependsin line with the rest of the org: extracts the CI checks into a reusable workflow and adds the weekly scheduled dependency check (same pattern asmodern-di,faststream-outbox, and the 12 repos in the recent rollout).Changes
_checks.yml(new) — the existinglint+pytestjobs moved verbatim into a reusableon: workflow_callworkflow. Matrix (python 3.10–3.14 × faststream<0.6.0/>=0.6.0) and the codecov upload are unchanged.ci.yml— now just thepush/pull_requesttriggers + concurrency, delegating to_checks.ymlviauses:withsecrets: inherit(soCODECOV_TOKENstill reaches the codecov step).scheduled.yml(new) — runs_checks.ymlon aMon 06:00 UTCcron (+ manualworkflow_dispatch), also withsecrets: inherit. On a scheduled failure, areport-failurejob opens/updates a singlescheduled-failuretracking issue.report-scheduled-failure.sh(new) — idempotent issue reporter; likely-cause hint lists this repo's actual stack (ruff, mypy, pyrefly, pytest, faststream).Why
Catches dependency drift on a schedule before it surprises a normal CI run.
Note: job/check names change from
lint/pytest (…)tochecks / lint/checks / pytest (…).mainhas no required-status-check contexts pinned, so this won't block merges — but update any branch-protection rules that reference the old names if you add them later.🤖 Generated with Claude Code