Skip to content

Commit 976ab26

Browse files
committed
fix handling coverage artifacts with latest action
1 parent 08b6601 commit 976ab26

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

.github/workflows/python-test.yml

+11-5
Original file line numberDiff line numberDiff line change
@@ -70,20 +70,26 @@ jobs:
7070
- name: Prepare artifacts
7171
run: mkdir .coverage-data && mv .coverage.* .coverage-data/
7272

73-
- uses: actions/upload-artifact@master
73+
- uses: actions/upload-artifact@v4
7474
with:
75-
name: coverage-data
76-
path: .coverage-data/
75+
name: coverage-data-${{ matrix.platform }}-${{ matrix.python-version }}
76+
path: .coverage-data/.coverage.*
7777

7878
coverage:
7979
runs-on: ubuntu-latest
8080
needs: [test]
8181
steps:
8282
- uses: actions/checkout@v4
8383

84-
- uses: actions/download-artifact@master
84+
- name: Merge Artifacts
85+
uses: actions/upload-artifact/merge@v4
8586
with:
86-
name: coverage-data
87+
delete-merged: true
88+
89+
- uses: actions/download-artifact@v4
90+
with:
91+
pattern: coverage-data-*
92+
merge-multiple: coverage-data-*
8793
path: .
8894

8995
- name: Set up Python 3.12

0 commit comments

Comments
 (0)