Simon Willison 7/14/2026

Using uvx in GitHub Actions in a cache-friendly way

Read Original

This article explains how to use uvx in GitHub Actions in a cache-friendly way to avoid repeated network requests to PyPI. The author shares a recipe that sets the UV_EXCLUDE_NEWER environment variable to a specific date, which is then used as part of the GitHub Actions cache key. This ensures that the tool is fetched only once and reused from the cache for subsequent runs, with the ability to upgrade by bumping the date. The article also references an existing issue about caching defaults in the astral-sh/setup-uv repository. It is a technical tutorial focused on DevOps and Python tooling in CI/CD.

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