Skip to content

chore: standardize Python version to 3.13 across all workflows#403

Merged
abhimehro merged 2 commits intomainfrom
copilot/standardize-python-version
Feb 28, 2026
Merged

chore: standardize Python version to 3.13 across all workflows#403
abhimehro merged 2 commits intomainfrom
copilot/standardize-python-version

Conversation

Copy link

Copilot AI commented Feb 20, 2026

copilot-setup-steps.yml was pinned to Python 3.12 while pyproject.toml declares requires-python = ">=3.13", creating a silent mismatch where CI could pass on an unsupported runtime.

Changes

  • .github/workflows/copilot-setup-steps.yml: bumped python-version from 3.123.13
# Before
- uses: actions/setup-python@v5
  with:
    python-version: '3.12'

# After
- uses: actions/setup-python@v5
  with:
    python-version: '3.13'

All three workflows that set python-version (sync.yml, performance.yml, copilot-setup-steps.yml) now consistently use 3.13, matching the project's declared minimum runtime.

Original prompt

This section details on the original issue you should resolve

<issue_title>[Code Quality] Standardize Python version across all workflows to 3.13+</issue_title>
<issue_description>### Description

Multiple workflows use Python 3.12 while pyproject.toml explicitly requires Python 3.13+. This creates inconsistencies in testing and may hide compatibility issues.

Problem

Current State:

  • pyproject.toml: requires-python = ">=3.13"
  • Main workflow (sync.yml): Uses Python 3.13 ✅
  • Daily QA workflow: Uses Python 3.12.3 via copilot-setup-steps.yml

Impact:

  • Daily QA cannot test actual runtime behavior
  • May miss Python 3.13-specific features or issues
  • Inconsistent test results between workflows

Suggested Changes

Update .github/workflows/copilot-setup-steps.yml (or any workflow using it):

- name: Setup Python
  uses: actions/setup-python@v5
  with:
    python-version: '3.13'  # Changed from '3.12'

Files Affected

  • .github/workflows/copilot-setup-steps.yml
  • Any other workflows using Python 3.12 (scan all .github/workflows/*.yml)

Success Criteria

  • All workflows use Python 3.13+
  • grep "python-version" .github/workflows/*.yml shows only 3.13 or higher
  • Daily QA workflow runs successfully on Python 3.13

Source

Extracted from Daily QA Report abhimehro/ctrld-sync#303 which identified this Python version mismatch as a critical configuration issue.

Priority

High - Affects testing accuracy and may hide compatibility bugs

🔍 Task mining by Discussion Task Miner - Code Quality Improvement Agent

To install this workflow, run gh aw add github/gh-aw/.github/workflows/discussion-task-miner.md@94662b1dee8ce96c876ba9f33b3ab8be32de82a4. View source at https://github.com/github/gh-aw/tree/94662b1dee8ce96c876ba9f33b3ab8be32de82a4/.github/workflows/discussion-task-miner.md.

  • expires on Feb 20, 2026, 1:48 PM UTC

Comments on the Issue (you are @copilot in this section)

Custom agent used: Development Partner
The Development Partner Protocol


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

@trunk-io
Copy link

trunk-io bot commented Feb 20, 2026

Merging to main in this repository is managed by Trunk.

  • To merge this pull request, check the box to the left or comment /trunk merge below.

Co-authored-by: abhimehro <84992105+abhimehro@users.noreply.github.com>
Copilot AI changed the title [WIP] Update Python version to 3.13 in workflows chore: standardize Python version to 3.13 across all workflows Feb 20, 2026
Copilot AI requested a review from abhimehro February 20, 2026 03:50
@abhimehro abhimehro marked this pull request as ready for review February 22, 2026 10:10
Copilot AI review requested due to automatic review settings February 22, 2026 10:10
@github-actions
Copy link

👋 Development Partner is reviewing this PR. Will provide feedback shortly.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR standardizes Python version to 3.13 across all GitHub Actions workflows to match the project's minimum Python version requirement declared in pyproject.toml. Previously, copilot-setup-steps.yml was using Python 3.12, creating an inconsistency that could hide compatibility issues during CI testing.

Changes:

  • Updated .github/workflows/copilot-setup-steps.yml to use Python 3.13 instead of 3.12

@cursor cursor bot enabled auto-merge (squash) February 26, 2026 23:37
@abhimehro abhimehro merged commit de80c13 into main Feb 28, 2026
36 checks passed
@abhimehro abhimehro deleted the copilot/standardize-python-version branch February 28, 2026 07:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Code Quality] Standardize Python version across all workflows to 3.13+

3 participants