Skip to content

ci: extract reusable checks workflow + add scheduled dependency check#214

Merged
lesnik512 merged 1 commit into
mainfrom
ci/scheduled-dep-check
Jun 13, 2026
Merged

ci: extract reusable checks workflow + add scheduled dependency check#214
lesnik512 merged 1 commit into
mainfrom
ci/scheduled-dep-check

Conversation

@lesnik512

Copy link
Copy Markdown
Member

Brings that-depends in line with the rest of the org: extracts the CI checks into a reusable workflow and adds the weekly scheduled dependency check (same pattern as modern-di, faststream-outbox, and the 12 repos in the recent rollout).

Changes

  • _checks.yml (new) — the existing lint + pytest jobs moved verbatim into a reusable on: workflow_call workflow. Matrix (python 3.10–3.14 × faststream <0.6.0/>=0.6.0) and the codecov upload are unchanged.
  • ci.yml — now just the push/pull_request triggers + concurrency, delegating to _checks.yml via uses: with secrets: inherit (so CODECOV_TOKEN still reaches the codecov step).
  • scheduled.yml (new) — runs _checks.yml on a Mon 06:00 UTC cron (+ manual workflow_dispatch), also with secrets: inherit. On a scheduled failure, a report-failure job opens/updates a single scheduled-failure tracking 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 (…) to checks / lint / checks / pytest (…). main has 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

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

codecov Bot commented Jun 13, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

Flag Coverage Δ
unittests 100.00% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@lesnik512 lesnik512 merged commit 1fbcec7 into main Jun 13, 2026
12 checks passed
@lesnik512 lesnik512 deleted the ci/scheduled-dep-check branch June 13, 2026 19:57
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