The Chonkerton

Using uvx in GitHub Actions in a cache-friendly way

dev_tools

Simon Willison's Weblog shares a cache-friendly recipe for using uvx, a Python tool runner, in GitHub Actions workflows. The key: set a UV_EXCLUDE_NEWER environment variable to a specific date at the start of your workflow, then include that date in your GitHub Actions cache key. This way, any uvx tool commands resolve to the most recent versions available as of that date—without hitting PyPI on every run. To upgrade your tools and bust the cache, simply bump the date forward.

Source: https://simonwillison.net/2026/Jul/14/uvx-github-actions-...

Listen to this story

Hear this and more stories in a personalized audio briefing.

Open The Chonkerton