Using uvx in GitHub Actions in a cache-friendly way

190 · Simon Willison TIL · July 14, 2026, 1:16 a.m.
Summary
This blog post discusses how to efficiently use the uvx tool in GitHub Actions by caching it to avoid repeated downloads from PyPI. The author shares a specific method for setting up the cache using an environment variable, UV_EXCLUDE_NEWER, which helps maintain consistent tool versions and facilitates cache invalidation. This approach aims to streamline workflow executions and optimize CI processes.