415.tech
AI & tech, from the frontlines of Silicon Valley
Simon Willison's cache-friendly recipe for uvx in GitHub Actions

Simon Willison's cache-friendly recipe for uvx in GitHub Actions

Simon Willison pins uvx tools in GitHub Actions by setting UV_EXCLUDE_NEWER to a fixed date and reusing it as the setup-uv cache key, so runs stop hitting PyPI until the date is bumped. A developer can drop the YAML snippet in today to keep tool versions pinned and cached, and an open setup-uv issue asks that caching become the default instead of purging wheels.

Source: simonwillison.net

Post on XEmail