GitHub Actions 已支持 Python 3.15.0 测试环境
Python 3.15.0 已加入 GitHub Actions 使用的 actions/python-versions 版本库。
这意味着开发者现在可以在 GitHub Actions 的测试矩阵中添加 "3.15",让 CI 流水线针对新发布的 Python 3.15.0 运行测试。
示例配置:
strategy:
matrix:
python-version: ["3.13", "3.14", "3.15"]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
对于维护 Python 库或应用的项目来说,这可以用于尽早验证代码在 Python 3.15.0 下的兼容性。
浏览
