Skip to content
Latchkey

Python GitHub Actions workflows

Real Python CI workflows from popular open-source projects, each graded on four CI best practices. See how the best ones are set up, then grade your own.

What a strong Python workflow does

The highest-graded Python workflows enable dependency caching on the setup step, cancel superseded runs with a concurrency group, set a job timeout, and pin third-party actions to a commit SHA. Latchkey applies all of these automatically on managed self-healing runners.

13 real Python workflows

Publish workflow (pallets/flask)The Publish workflow from pallets/flask, explained and optimized by Latchkey. Code Checks workflow (pandas-dev/pandas)The Code Checks workflow from pandas-dev/pandas, explained and optimized by Latchkey. pre-commit workflow (pallets/click)The pre-commit workflow from pallets/click, explained and optimized by Latchkey. diff-shades workflow (psf/black)The diff-shades workflow from psf/black, explained and optimized by Latchkey. Build Docs workflow (tiangolo/sqlmodel)The Build Docs workflow from tiangolo/sqlmodel, explained and optimized by Latchkey. tests workflow (pypa/setuptools)The tests workflow from pypa/setuptools, explained and optimized by Latchkey. Deploy docs workflow (tensorflow/transform)The Deploy docs workflow from tensorflow/transform, explained and optimized by Latchkey. Build Docs workflow (tiangolo/fastapi)The Build Docs workflow from tiangolo/fastapi, explained and optimized by Latchkey. Build Burr workflow (apache/burr)The Build Burr workflow from apache/burr, explained and optimized by Latchkey. Build workflow (psf/pyperf)The Build workflow from psf/pyperf, explained and optimized by Latchkey. Test workflow (django/django-localflavor)The Test workflow from django/django-localflavor, explained and optimized by Latchkey. Python application workflowGitHub's official Python application starter workflow, explained and hardened by Latchkey. Nightly Cron workflow (facebook/Ax)The Nightly Cron workflow from facebook/Ax, explained and optimized by Latchkey.