Skip to content

ci: fix PyPI publish workflow on ubuntu-latest#108

Merged
njzjz merged 1 commit intodeepmodeling:masterfrom
njzjz-bot:fix/publish-workflow-python311
Feb 24, 2026
Merged

ci: fix PyPI publish workflow on ubuntu-latest#108
njzjz merged 1 commit intodeepmodeling:masterfrom
njzjz-bot:fix/publish-workflow-python311

Conversation

@njzjz-bot
Copy link
Contributor

@njzjz-bot njzjz-bot commented Feb 24, 2026

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.7
  • Ubuntu 24.04 image no longer provides 3.7 in toolcache

Fix

  • Update .github/workflows/python-publish.yml to use python-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

  • Chores
    • Updated Python version used in the publishing workflow to 3.11.

@codecov
Copy link

codecov bot commented Feb 24, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 75.14%. Comparing base (a420495) to head (6de554a).
⚠️ Report is 1 commits behind head on master.

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.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Feb 24, 2026

📝 Walkthrough

Walkthrough

Updates 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

Cohort / File(s) Summary
GitHub Actions Workflow
.github/workflows/python-publish.yml
Updated Python version from 3.7 to 3.11 in the Set up Python step.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately describes the main change: updating Python version in the PyPI publish workflow to fix compatibility with ubuntu-latest.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧹 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/checkout version is v6.0.2, and the official actions/setup-python@v6 docs 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".

ℹ️ Review info

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between a420495 and 6de554a.

📒 Files selected for processing (1)
  • .github/workflows/python-publish.yml

@njzjz njzjz merged commit b4db564 into deepmodeling:master Feb 24, 2026
8 checks passed
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