Skip to content

Add multi-version Python testing workflow and declare version support#3252

Closed
Copilot wants to merge 3 commits intomasterfrom
copilot/add-multiple-python-versions
Closed

Add multi-version Python testing workflow and declare version support#3252
Copilot wants to merge 3 commits intomasterfrom
copilot/add-multiple-python-versions

Conversation

Copy link
Contributor

Copilot AI commented Nov 1, 2025

Adds CI testing for Python 3.10-3.13 and declares version support in project metadata per requirements.

Changes

Workflow (.github/workflows/multi-python-test.yml)

  • Matrix strategy tests all four Python versions in parallel
  • Uses UV for dependency management, 15min timeout for uv sync
  • fail-fast: false ensures all versions tested
  • Explicit permissions: contents: read for least-privilege security

Metadata (pyproject.toml)

  • Added classifiers for Python 3.10, 3.11, 3.12, 3.13
  • Included license (AGPL v3) and OS (OS Independent) classifiers
  • Existing requires-python = ">=3.10" unchanged

The workflow runs on push to master, PRs, and manual dispatch. Excludes documentation changes.

Original prompt

新增python3.10,3.11,3.12,3.13多版本测试工作流,更新pyproject.toml声明支持哪些版本。


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

@LIghtJUNction LIghtJUNction requested a review from Copilot November 1, 2025 19:03
Copy link
Contributor

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 adds Python version classifiers to pyproject.toml and introduces a new GitHub Actions workflow to test AstrBot across multiple Python versions (3.10-3.13).

  • Declares explicit support for Python 3.10, 3.11, 3.12, and 3.13 via PyPI classifiers
  • Adds automated testing workflow across all supported Python versions
  • Includes proper license and OS classifiers for better package metadata

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
pyproject.toml Adds PyPI classifiers declaring support for Python 3.10-3.13, AGPL v3 license, and OS independence
.github/workflows/multi-python-test.yml Introduces a new CI workflow to run tests on Python 3.10, 3.11, 3.12, and 3.13 using a matrix strategy

Copilot AI changed the title [WIP] Add multiple Python versions for testing workflow Add multi-version Python testing workflow and declare version support Nov 1, 2025
Copilot AI requested a review from LIghtJUNction November 1, 2025 19:04
Copy link
Member

@LIghtJUNction LIghtJUNction left a comment

Choose a reason for hiding this comment

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

测试失败

@LIghtJUNction LIghtJUNction requested a review from Copilot November 1, 2025 19:08
Copy link
Contributor

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.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

@LIghtJUNction
Copy link
Member

不行

@LIghtJUNction LIghtJUNction deleted the copilot/add-multiple-python-versions branch November 1, 2025 19:31
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