Skip to content

feat(python-check): add reusable python-check workflow - #108

Merged
Andreas-Garcia merged 2 commits into
mainfrom
feature/python-check-workflow-105
Dec 2, 2026
Merged

Andreas-Garcia merged 2 commits into
mainfrom
feature/python-check-workflow-105

Conversation

@Andreas-Garcia

@Andreas-Garcia Andreas-Garcia commented Dec 2, 2026 •

Copy link
Copy Markdown
Member

Summary

Adds the reusable python-check.yml workflow: it runs bash scripts/check.sh <lint|test> of the calling repository with uv, so lint and test commands live in each repository and CI runs the same command as a developer.

Issues

Closes #105
Refs BehindTheMusicTree/python-project-standards#33

Changes

  • .github/workflows/python-check.yml (workflow_call): inputs target (lint|test, required, any other value fails), python-version, runs-on, pre-install-command, env (KEY=VALUE lines written to $GITHUB_ENV), uv-sync-args, coverage-artifact, timeout-minutes (default 15).
  • Steps: validate inputs, checkout, write env, pre-install command, astral-sh/setup-uv with cache, uv sync --locked then scripts/check.sh <target>, upload coverage.xml (target test only, artifact name must match coverage-* for coverage.yml).
  • setup-uv is pinned by SHA (v10.4.1, no floating major tag exists); other actions by tag like the existing workflows. Concurrency is left to callers, as in coverage.yml.

Test plan

  • actionlint .github/workflows/python-check.yml: clean.
  • Independent review of the range: two minor findings (CRLF in env lines, unquoted uv-sync-args expansion), both fixed in the second commit.
  • Not covered here: no self-call test in test-actions.yml, because this repository has no pyproject.toml/uv.lock for uv sync --locked. End-to-end validation by SHA from a geography branch needs phase C (scripts/check.sh lint|test, python-project-standards#34) and is still to do.

Screenshots

N/A

Risk

Intent change, depth standard: new workflow, no existing caller, so nothing breaks. Review findings: none left open; no pre-existing findings.

How to revert

Revert the merge commit; no caller references the workflow yet.

Deployment notes

None. Callers pin it by SHA once released.

Post-deploy verification

Call it by SHA from a geography branch once phase C lands (python-project-standards#34, tracked by #33).

🤖 Generated with Claude Code

Andreas-Garcia and others added 2 commits December 2, 2026 19:19
Runs bash scripts/check.sh <lint|test> of the caller with uv, optional
coverage.xml upload for coverage.yml.

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

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@Andreas-Garcia
Andreas-Garcia enabled auto-merge (squash) December 2, 2026 18:21
@Andreas-Garcia
Andreas-Garcia merged commit b25398b into main Dec 2, 2026
13 checks passed
@Andreas-Garcia
Andreas-Garcia deleted the feature/python-check-workflow-105 branch December 2, 2026 20:33
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.

Add reusable python-check.yml running scripts/check.sh lint|test with uv

1 participant