File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change 2828 - x86
2929
3030 steps :
31+ # Updated to v4
3132 - uses : actions/checkout@v4
3233
3334 - name : Set up Python ${{ matrix.version }}
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
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
You can’t perform that action at this time.
0 commit comments