Using uvx in GitHub Actions in a cache-friendly way
Provides a practical optimization technique for developers managing Python tool dependencies in CI/CD pipelines, reducing build times and network dependencies.
AI Summary
Simon Willison shares a cache-friendly recipe for using uvx (the pyproject.toml installer from uv) in GitHub Actions workflows, explaining how to set a UV_EXCLUDE_NEWER environment variable to pin tool versions and cache them efficiently between workflow runs. The technique allows developers to run Python tools in CI/CD without hitting PyPI on every execution, reducing network requests and improving performance.
