PDF booklet

Fast, reproducible Python pipelines with Astral's uv

A practical PDF: lockfiles, setup-uv, caching, Docker, trusted publishing, and supply-chain hygiene in GitHub Actions and GitLab CI.

For teams tired of slow pip installs, drifting dependencies, and CI that passes locally but fails in the pipeline.

Buy for $19 Secure checkout · Stripe
uv for CI booklet cover
$ uv lock --check
Resolved 42 packages in 3ms
$ uv sync --locked --all-extras
Installed 42 packages in 61ms
$ uv run --locked pytest -q
312 passed in 4.21s

Speed

Lock, sync, and test in seconds — not minutes of pip churn every run.

Reproducibility

Make the lockfile the law; pin uv, pin actions, audit dependencies.

One tool

Install, lock, run, build, and publish — same commands locally and in CI.

Peek inside

Three sample pages from the PDF — click any page to view it larger.

Page 3

About this booklet

Who it's for and how to copy, paste, and adapt each chapter.

Page 9

GitHub Actions

Official setup-uv, cache persistence, and workflow patterns.

Page 19

Other CI systems

Cache keys and uv on GitLab-adjacent and enterprise runners.

What's inside

  • Why uv in CI — speed, reproducibility, one toolchain
  • GitHub Actions & setup-uv
  • GitLab CI/CD patterns
  • Caching deep dive — keys, UV_LINK_MODE, safe sharing
  • CircleCI, Azure Pipelines, Jenkins
  • Publishing packages & trusted publishing from GitHub Actions
  • Security — pin uv, SHA-pin actions, exclude-newer
  • Migrating from pip, pip-tools, and Poetry

Covers uv 0.13.x and setup-uv v10.x (November 2026 edition).

After purchase

You'll get an immediate download on the success page and the same link by email. Links stay valid for 24 hours. Team use inside your org is fine — please don't resell the PDF.

Questions? Reply to the purchase email or reach out via Developer Service Blog.

Who am I

Nuno Bispo

Nuno Bispo

Senior Software Engineer and Solutions Architect with over 15 years of experience building production systems across insurance, banking, and aviation. I specialize in Python, Django, FastAPI, and AI integrations.

I share that work through tutorials on Real Python, articles for Unstract, books on Leanpub, and Developer Service Blog. This booklet collects the CI patterns I use with uv every day — lockfiles, caches, and pipelines that fail loud when something drifts.