PulseAugur
EN
LIVE 05:38:34

Simon Willison shares cache-friendly uvx strategy for GitHub Actions

Simon Willison has detailed a method for efficiently caching tools installed via `uvx` within GitHub Actions workflows. By setting the `UV_EXCLUDE_NEWER` environment variable to a specific date, subsequent `uvx` commands will only install versions released up to that point. This approach prevents repeated downloads from the Python Package Index (PyPI) for each workflow run, saving time and resources. The cache can be updated by simply advancing the date in the environment variable, allowing for controlled upgrades of the tools. AI

IMPACT Streamlines CI/CD pipelines for Python projects using AI-generated code or tools, reducing build times and dependency costs.

RANK_REASON The item describes a specific technical method for using a tool (uvx) within a platform (GitHub Actions) to improve efficiency.

Read on Bluesky Jetstream — AI desk →

AI-generated summary · Google Gemini · from 2 sources. How we write summaries →

Simon Willison shares cache-friendly uvx strategy for GitHub Actions

COVERAGE [2]

  1. Simon Willison TIER_1 English(EN) ·

    Using uvx in GitHub Actions in a cache-friendly way

    <p><strong>TIL:</strong> <a href="https://til.simonwillison.net/github-actions/uvx-github-actions-cache">Using uvx in GitHub Actions in a cache-friendly way</a></p> <p>I finally found a cache-friendly recipe for using <code>uvx tool-name</code> in GitHub Actions workflows that I …

  2. Bluesky Jetstream — AI desk TIER_1 English(EN) · simonwillison.net ·

    New TIL: Using uvx in GitHub Actions in a cache-friendly way

    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...