Skip to content

Commit 6eb9bf0

Browse files
committed
ci: enhance coverage data handling in GitHub Actions workflow
- Updated the coverage data upload step to include the Python version in the artifact name. - Modified the download step to use a pattern for coverage data and enabled merging of multiple artifacts.
1 parent f8d244f commit 6eb9bf0

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/main.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,10 @@ jobs:
4343
TOXENV=$(tox --listenvs | grep "^py$ENV_PREFIX" | tr '\n' ',') tox
4444
4545
- name: Upload coverage data
46+
if: always()
4647
uses: actions/upload-artifact@v6
4748
with:
48-
name: coverage-data
49+
name: coverage-data-${{ matrix.python-version }}
4950
path: '.coverage.*'
5051

5152
coverage:
@@ -65,7 +66,8 @@ jobs:
6566
- name: Download data
6667
uses: actions/download-artifact@v7
6768
with:
68-
name: coverage-data
69+
pattern: coverage-data-*
70+
merge-multiple: true
6971

7072
- name: Combine coverage and fail if it's <100%
7173
run: |

0 commit comments

Comments
 (0)