Opinionated GitHub Actions and reusable workflows for Python projects, following the conventions of ci-github-nodejs and ci-github-php.
A uv project with committed pyproject.toml and uv.lock. Declare Ruff,
Black, mypy, pytest and pytest-cov in the default development dependency group.
Use GitHub.com and a Linux Actions runner supporting Node.js 24 actions and
same-repository $/ references.
name: CI
on: [push, pull_request]
permissions: {}
jobs:
python:
uses: hoverkraft-tech/ci-github-python/.github/workflows/continuous-integration.yml@main
permissions:
contents: read
id-token: writeThe workflow detects the project's runtime. Pin the workflow to a reviewed
commit SHA in production. The reusable workflow declares OIDC permission for
optional Codecov uploads, so callers must grant id-token: write; standalone
actions with GitHub reporting require only contents: read.
| Action | Purpose |
|---|---|
| setup-python | Install the project runtime and dependencies |
| lint | Check style and static analysis |
| test | Run tests and retain native reports |
| audit | Check dependency vulnerabilities |
| package/test | Validate wheels and source distributions in clean consumers |