-
Notifications
You must be signed in to change notification settings - Fork 9
Update GitHub Actions to use uv instead of pip #549
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
tkoyama010
wants to merge
14
commits into
main
Choose a base branch
from
maint/use-uv-in-github-actions
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
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
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 <[email protected]>
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 <[email protected]>
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 <[email protected]>
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 <[email protected]>
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 <[email protected]>
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 <[email protected]>
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 <[email protected]>
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