Simon Willison
Using uvx in GitHub Actions in a cache-friendly way
infrastructure
What happened
Simon Willison shares a practical recipe for using `uvx` (Astral's tool runner) in GitHub Actions workflows in a cache-friendly way. By setting the `UV_EXCLUDE_NEWER` environment variable to a specific date and using it in the cache key, developers can pin tool versions and prevent workflows from querying PyPI on every run, saving bandwidth and build time.
Why it matters
Optimizing CI/CD pipelines for Python-based AI tools improves iteration speed and reduces build flakiness.
The take
While not directly an AI/LLM breakthrough, `uv` has rapidly become the gold standard for Python dependency management in the AI ecosystem. This caching trick is highly useful for teams building CI/CD pipelines for Python-based LLM applications, agents, or evaluation suites where build speed and reproducibility are critical.
Don't read this site daily. Get it in your inbox.
The daily brief and Sunday deep dive — distilled, scored, and opinionated. For builders only.