Skip to content

About

Opinionated GitHub Actions and reusable workflows for Python continuous integration.

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

CI GitHub Python

CI GitHub Python logo

Opinionated GitHub Actions and reusable workflows for Python projects, following the conventions of ci-github-nodejs and ci-github-php.

Prerequisites

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.

Quick start

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: write

The 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.

Actions

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

Documentation

License

MIT

About

Opinionated GitHub Actions and reusable workflows for Python continuous integration.

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages