Tips for Caching uvx Tools in GitHub Actions
Simon Willison · rss · 2026-07-14
The author shares a neat method for caching uvx tools in GitHub Actions.
The core trick is setting the UVEXCLUDENEWER environment variable (e.g., to a specific date like 2026-07-12) at the start of the workflow and incorporating this date into the GitHub Actions cache key. This forces the uvx command to resolve to the latest version available before that date, avoiding re-downloading the tool and its dependencies from PyPI on every run. To upgrade the tool later, simply updating this date variable refreshes the cache.
More from coding & agent
- AI agents are starting to strain code hosting platforms — craigsdennis · 2026-07-21
- Omnigent 0.6.0 adds Claude Code imports, Slack approvals and desktop apps — matei_zaharia · 2026-07-21
- Google appears to have quietly shipped Gemini 3.6 Flash, with lower pricing and better agentic scores — xiaohu · 2026-07-21
- Coding agents feel less stressful when the 5-hour limits are temporarily removed — iamrobotbear · 2026-07-21
- OpenAI’s London Codex event packed a room with teams shipping in one day — paw_lean · 2026-07-21
- TWSE MCP Server brings Taiwan stock data into natural-language workflows — modelcontextprotocol · 2026-07-21