chore(ci): update workflow to use astral-sh/setup-uv@v6 with Python version#8508
Conversation
…rkflow - Changed Python version to 3.13 for better compatibility. - Replaced local setup-uv action with astral-sh/setup-uv@v6 for improved reliability. - Enabled caching with specific configurations to enhance build performance.
WalkthroughThe workflow configuration was updated to switch from a locally defined setup action to the external Changes
Sequence Diagram(s)sequenceDiagram
participant GitHub Actions
participant astral-sh/setup-uv
participant Python Environment
GitHub Actions->>astral-sh/setup-uv: Setup environment (with cache, Python version)
astral-sh/setup-uv->>Python Environment: Install Python 3.13, manage uv.lock caching
GitHub Actions->>Python Environment: Run lint/update-starter-projects jobs
Possibly related PRs
Suggested labels
Suggested reviewers
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Actionable comments posted: 0
♻️ Duplicate comments (1)
.github/workflows/py_autofix.yml (1)
34-39: Duplicate setup block detected
This block is the same as lines 17–22. See the earlier comment for suggestions on removing duplication.
🧹 Nitpick comments (1)
.github/workflows/py_autofix.yml (1)
17-22: DRY up duplicated setup steps
Theastral-sh/setup-uv@v6invocation (with cache config andpython-version) is identical in multiple jobs. Consider extracting this into a reusable workflow, composite action, or YAML anchor to avoid duplication and ease maintenance.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
.github/workflows/py_autofix.yml(3 hunks)
🔇 Additional comments (1)
.github/workflows/py_autofix.yml (1)
7-7:Details
❓ Verification inconclusive
Verify Python version support
Python 3.13 is not yet officially available on GitHub runners by default. Confirm thatastral-sh/setup-uv@v6supports this version or adjust to a supported one (e.g.,3.12).
🏁 Script executed:
#!/bin/bash set -e echo "## GitHub-hosted runner Python versions (Ubuntu22-04):" curl -s https://raw.githubusercontent.com/actions/virtual-environments/main/images/linux/Ubuntu22-04-Readme.md \ | grep -A3 -i '^## Python' echo echo "## setup-uv v6 README excerpts for Python support:" curl -s https://raw.githubusercontent.com/astral-sh/setup-uv/v6/README.md \ | grep -i -A3 'python'Length of output: 267
Verify Python version support
I was unable to confirm that Python 3.13 is available on GitHub-hosted runners (Ubuntu 22.04) or supported byastral-sh/setup-uv@v6. Please verify manually or switch to a known supported version (e.g.,3.12).
Summary by CodeRabbit