Skip to content

Commit 325113c

Browse files
committed
update ci
1 parent 206ba89 commit 325113c

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/CI.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ jobs:
2828
- x86
2929

3030
steps:
31+
# Updated to v4
3132
- uses: actions/checkout@v4
3233

3334
- name: Set up Python ${{ matrix.version }}
@@ -64,7 +65,10 @@ jobs:
6465
uses: actions/upload-artifact@v4
6566
with:
6667
name: coverage-data-${{ matrix.os }}-${{ matrix.arch }}
67-
path: .coverage.*
68+
# 修复:同时上传 .coverage (单进程默认) 和 .coverage.* (多进程并行) 文件
69+
path: |
70+
.coverage
71+
.coverage.*
6872
6973
codecov:
7074
name: Codecov Merge & Upload
@@ -93,7 +97,8 @@ jobs:
9397
- name: Combine and Report
9498
run: |
9599
# 移动所有数据文件到根目录,以便 coverage combine 找到
96-
find coverage-artifacts -name ".coverage.*" -exec mv {} . \;
100+
# find 命令现在可以安全运行,因为 download-artifact 应该已创建目录
101+
find coverage-artifacts -name ".coverage*" -exec mv {} . \;
97102
98103
# 合并所有 .coverage.* 文件,解决跨 Job 和多进程数据丢失问题
99104
coverage combine
@@ -114,6 +119,7 @@ jobs:
114119
needs: codecov
115120

116121
steps:
122+
# Updated to v4
117123
- uses: actions/checkout@v4
118124

119125
- name: Install dependencies

0 commit comments

Comments
 (0)