Skip to content

Conversation

@tkoyama010
Copy link
Member

Summary

  • Replace actions/setup-python with astral-sh/setup-uv in documentation workflow
  • Update dependency installation command from pip install to uv pip install

Benefits

  • Faster package installation and dependency resolution
  • Better dependency management with uv's improved resolver
  • Modernize CI/CD pipeline with latest Python packaging tools

tkoyama010 and others added 14 commits August 13, 2025 05:45
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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants