Skip to content

[WIP] Add workflow to test multiple Python versions - #3259

Closed
LIghtJUNction with Copilot wants to merge 3 commits into
masterfrom
copilot/add-python-version-workflow
Closed

LIghtJUNction with Copilot wants to merge 3 commits into
masterfrom
copilot/add-python-version-workflow

Conversation

Copilot AI commented Nov 1, 2025 •

Copy link
Copy Markdown
Contributor

Plan: Add Multi-Python Version Testing Workflow

  • Create new GitHub Actions workflow file .github/workflows/python-versions-test.yml
  • Configure matrix strategy to test Python versions: 3.10, 3.11, 3.12, 3.13, 3.14-dev
  • Use existing test infrastructure (pytest, pytest-asyncio, pytest-cov)
  • Set up triggers for push to master, pull requests, and manual dispatch
  • Ensure all required directories are created
  • Test the workflow (validate YAML syntax)
  • Add explicit permissions for security compliance
  • Final verification

Summary

Created a new GitHub Actions workflow that tests AstrBot against multiple Python versions:

  • Python 3.10
  • Python 3.11
  • Python 3.12
  • Python 3.13
  • Python 3.14-dev (pre-release)

The workflow:

  • Uses a matrix strategy with fail-fast: false to ensure all Python versions are tested even if one fails
  • Includes explicit permissions: contents: read for security compliance
  • Follows the same test structure as the existing coverage_test.yml workflow
  • Triggers on push to master, pull requests, and manual dispatch

Security Summary

  • Added explicit permissions block to limit GITHUB_TOKEN access
  • No vulnerabilities introduced
Original prompt

新增工作流:测试多种python版本(3.10,3.11,3.12,3.13,3.14)


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI and others added 2 commits November 1, 2025 19:35
Co-authored-by: LIghtJUNction <106986785+LIghtJUNction@users.noreply.github.com>
Co-authored-by: LIghtJUNction <106986785+LIghtJUNction@users.noreply.github.com>
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