Setting a UV_EXCLUDE_NEWER environment variable to a fixed date and including that date in the GitHub Actions cache key produces a cache-friendly way to run uvx tool-name in workflows.
Simon Willison describes a recipe he finally settled on for making uvx usage in GitHub Actions cache-friendly: pin a date via UV_EXCLUDE_NEWER and use it in the cache key.
transcript
Simon Willison: I finally found a cache-friendly recipe for using uvx tool-name in GitHub Actions workflows that I like.
explains mechanism · 1provides context · 1