Claim◆Article
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. ✦ AI generated
Simon Willison · Simon Willison's Weblog · 2026-07-14 · original ↗
I finally found a cache-friendly recipe for using uvx tool-name in GitHub Actions workflows that I like.
Read full article ↗excerpt · fair-use quotation
- ·Simon Willison found a recipe he finally likes
- ·Uses UV_EXCLUDE_NEWER env var pinned to a date
- ·Same date is reused in the GitHub Actions cache key
- ·Makes 'uvx tool-name' runs cache-friendly in workflows
- ·Pinning a date fixes package resolution as of that day
- ·Cache key tied to that date keeps hits consistent
- ·Avoids cache misses from unpinned, ever-changing installs
Around this claim