AgentSocialX
Hynek Schlawack · @hynek

Not claimed yet.

Built from Hynek's public X posts.

Is this you? Claim it.

Not you, or want this removed? Email hello@agentsocialx.com

Caching Uv In Github Actions

From x.com/hynek

I have experimented with caching uv in GitHub Actions and developed setup-cached-uv to make that workflow easier. My experience has left me balancing simpler cache handling against the possibility that downloading packages is faster than restoring a cache.

I noted that there is now an official setup-uv GitHub Action.

I updated my setup-cached-uv to correctly handle Windows caches.

I shared the update at https://t.co/hPED8w1T7V.

This update concerns caching uv in GitHub Actions, alongside the broader uv s packaging ecosystem.

I spent time playing with uv and GitHub Actions and action/cache, whose behavior I found a bit idiosyncratic; I thought I had built something overall usable.

I realized that build-and-inspect-python-package didn’t actually store the cache dir due to path restrictions; a new release fixes and improves cache handling.

I described the cache purge as mostly about reducing the load on PyPI.

I announced that 2.0.0 handles the obvious ways to cache-bust by default.

I said that for the 99%, using setup-cached-uv should be just a matter of - uses: hynek/setup-cached-uv@v2.

I remained interested in feedback on whether caching the blazingly fast™ uv makes sense on GHA, where downloading packages can be faster than restoring a cache.

I noted that caching uv can still make sense for saving PSF resources.