Simon Willison (@simonwillison.net): New TIL: Using uvx in GitHub Actions in a cache-friendly way I finally found a recipe that I like for running `uvx tool-name` in GitHub Actions without downloading a fresh copy of the package every t
Practical solution for power users automating workflows with Python tools while optimizing CI/CD performance through caching
AI Summary
Simon Willison shares a cache-friendly approach for running Python tools with uvx in GitHub Actions, using the UV_EXCLUDE_NEWER environment variable to create deterministic cache keys without needing additional dependency files. The technique allows tools to be cached between workflow runs while providing a simple way to bust the cache when needed. This solves the problem of uvx repeatedly downloading packages from PyPI on every workflow execution.
Excerpt
New TIL: Using uvx in GitHub Actions in a cache-friendly way I finally found a recipe that I like for running `uvx tool-name` in GitHub Actions without downloading a fresh copy of the package every time til.simonwillison.net/github-actio...
