Using uvx in GitHub Actions in a cache-friendly way

· 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.
AUTHOR
Sponsored
Zulip logo Zulip
Organized team chat for people who take work seriously. Topic-based threading keeps conversations focused.
Try Zulip
Become a sponsor →