Tips for Caching uvx Tools in GitHub Actions

Simon Willison · rss · 2026-07-14

The author shares a neat method for caching uvx tools in GitHub Actions.

The core trick is setting the UVEXCLUDENEWER environment variable (e.g., to a specific date like 2026-07-12) at the start of the workflow and incorporating this date into the GitHub Actions cache key. This forces the uvx command to resolve to the latest version available before that date, avoiding re-downloading the tool and its dependencies from PyPI on every run. To upgrade the tool later, simply updating this date variable refreshes the cache.

Original post →

More from coding & agent

coding & agent channel →