ci: fix PyPI publish workflow on ubuntu-latest#108
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #108 +/- ##
=======================================
Coverage 75.14% 75.14%
=======================================
Files 9 9
Lines 853 853
=======================================
Hits 641 641
Misses 212 212 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
📝 WalkthroughWalkthroughUpdates Python version in the GitHub Actions publish workflow from 3.7 to 3.11, ensuring the deployment pipeline uses a newer Python version for the publishing step. Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes 🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
🧹 Nitpick comments (1)
.github/workflows/python-publish.yml (1)
27-27: Fix is correct; consider bumping to Python 3.13 (optional).Python 3.11 resolves the Ubuntu 24.04 availability problem. The latest
actions/checkoutversion is v6.0.2, and the officialactions/setup-python@v6docs now show Python 3.13 as the recommended example version. Since this workflow only uses Python for packaging tooling (build,twine) and not for executing library code, the choice of version doesn't affect distributed artifacts — but aligning with the latest stable release gives a slightly longer runway before this needs revisiting again.🔧 Optional: bump to Python 3.13
- python-version: "3.11" + python-version: "3.13"🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In @.github/workflows/python-publish.yml at line 27, The workflow currently pins python-version: "3.11"; optionally update it to "3.13" to align with the actions/setup-python@v6 recommended example and provide a longer support runway—locate the python-version setting in the YAML (the python-version key under the actions/setup-python step) and change the value from "3.11" to "3.13".
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Nitpick comments:
In @.github/workflows/python-publish.yml:
- Line 27: The workflow currently pins python-version: "3.11"; optionally update
it to "3.13" to align with the actions/setup-python@v6 recommended example and
provide a longer support runway—locate the python-version setting in the YAML
(the python-version key under the actions/setup-python step) and change the
value from "3.11" to "3.13".
This fixes release publishing failure on ubuntu-latest (24.04) where Python 3.7 is unavailable in actions/setup-python@v6.
Root cause
Release run failed at setup-python:
python-version: 3.7Fix
.github/workflows/python-publish.ymlto usepython-version: "3.11"This keeps packaging steps (
build,twine upload) unchanged and restores release publishing.Authored by OpenClaw (model: gpt-5.3-codex)
Summary by CodeRabbit