Simon Willison 7/14/2026

Using uvx in GitHub Actions in a cache-friendly way

Read Original

This article provides a practical recipe for using uvx in GitHub Actions workflows in a cache-friendly way. The author explains how to set the UV_EXCLUDE_NEWER environment variable to a specific date, then use that date as part of the GitHub Actions cache key. This ensures that the first run fetches the tool from PyPI, while subsequent runs reuse the cached version, reducing network requests and speeding up CI/CD pipelines. The article also references an existing issue about caching defaults in the astral-sh/setup-uv repository. This is a technical guide focused on DevOps, CI/CD, and Python tooling in GitHub Actions.

Using uvx in GitHub Actions in a cache-friendly way

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser

Top of the Week

No top articles yet