digestweb.dev
Propose a News Source
Support usSponsor
🤝
Curated byFRSOURCE

digestweb.dev

Your essential dose of webdev and AI news, handpicked.

Advertisement

Want to reach web developers daily?

Advertise with us ↗

Back to Daily Feed

Cache-Friendly `uvx` in GitHub Actions: A Practical Guide

Worth Reading

Originally published on Simon Willison's Weblog by Simon Willison

View Original Article
Share this article:
Cache-Friendly `uvx` in GitHub Actions: A Practical Guide

Summary & Key Takeaways ​

  • uvx can be made cache-friendly in GitHub Actions by setting UV_EXCLUDE_NEWER.
  • This environment variable pins tool versions to a specific date, improving cache hit rates.
  • The date can be included in the GitHub Actions cache key to bust the cache when needed.
  • The primary goal is to avoid re-downloading Python tools and their dependencies from PyPI on every workflow run.
  • An existing issue requests setup-uv to default to caching rather than purging wheels.

Our Commentary ​

I've seen so many CI pipelines struggle with dependency resolution and caching. This UV_EXCLUDE_NEWER trick for uvx is genuinely smart. It's a simple, effective pattern that I think could be adapted for other package managers too. We're always looking for ways to shave seconds off builds, and this is a solid win for developer experience.

View Original Article
Share this article:
RSS Atom JSON Feed
© 2026 digestweb.dev — brought to you by  FRSOURCE