Update GitHub Actions to use uv instead of pip#549
Open
tkoyama010 wants to merge 14 commits intomainfrom
Open
Conversation
Replace actions/setup-python with astral-sh/setup-uv for faster package installation and better dependency resolution in the documentation build.
Fix pre-commit.ci error by using commit hash instead of floating tag reference.
Add --system flag to uv pip install command to enable global package installation in the GitHub Actions environment where no virtual environment is active.
Change -e to --editable flag for uv pip install command to fix CI build failures in the documentation workflow. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
Quote the .[docs] argument to prevent shell glob expansion that was causing CI failures. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
Ubuntu 24.04 uses externally managed Python (PEP 668) which requires the --break-system-packages flag for system-wide package installation. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
The uv pip install command needs sudo permissions when installing packages system-wide to /usr/local/lib directories. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
Use sudo -E with env to preserve the PATH variable so sudo can find the uv command that was installed by the setup-uv action. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
Replace 'uv' with '$(which uv)' to ensure the full path to the uv executable is used when running with sudo, fixing the "command not found" error that occurs when PATH isn't properly preserved in sudo context. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
Adds explicit cache cleanup step with || true to prevent the cache pruning exit code 2 error from failing the workflow during cleanup. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
actions/setup-pythonwithastral-sh/setup-uvin documentation workflowpip installtouv pip installBenefits