Skip to content

Commit c11caec

Browse files
committed
ci: 更新Python测试版本至3.12并优化工作流程
简化测试矩阵,仅保留Python 3.12版本测试 移除冗余的环境变量PYTHON_VERSION 修复二进制文件拷贝命令以兼容不同构建输出
1 parent e7b378a commit c11caec

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

.github/workflows/python-app.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,9 @@ jobs:
1111
strategy:
1212
matrix:
1313
os: [windows-latest, macos-latest]
14-
python-version: ['3.10', 'latest']
14+
python-version: ['3.12']
1515

1616
env:
17-
PYTHON_VERSION: '3.10'
1817
APP_NAME: 'bbtool'
1918

2019
steps:
@@ -24,7 +23,7 @@ jobs:
2423
- name: Setup Python
2524
uses: actions/setup-python@v4
2625
with:
27-
python-version: 'latest'
26+
python-version: ${{ matrix.python-version }}
2827

2928
- name: Install dependencies
3029
run: |
@@ -38,7 +37,7 @@ jobs:
3837
- name: Rename and move binary
3938
run: |
4039
mkdir -p release
41-
cp dist/${{ env.APP_NAME }}* release/
40+
cp dist/${{ env.APP_NAME }}* release/ || cp dist/* release/
4241
4342
- name: Upload to GitHub Releases
4443
uses: softprops/action-gh-release@v1

0 commit comments

Comments
 (0)