E-Ink News Daily

Back to list

Using uvx in GitHub Actions in a cache-friendly way

Simon Willison shares a technique for optimizing GitHub Actions workflows by caching Python tools installed via `uvx`. By setting a `UV_EXCLUDE_NEWER` environment variable and incorporating it into the cache key, developers can prevent redundant network requests to PyPI while maintaining control over dependency versions.

Background

GitHub Actions workflows often suffer from slow startup times due to repeated package downloads. The `uv` package manager offers fast installation, but configuring it for effective caching in CI environments requires specific strategies.

Source
Simon Willison
Published
Jul 14, 2026 at 08:56 AM
Score
6.0 / 10