Skip to content

Commit 36ef18d

Browse files
authored
Fix coverage data upload & download (#252)
* Try to fix coverage data upload not working by including hidden files. Also update all github actions to see if that helps. * Merge coverage data. * Don't merge coverage data - just download them all.
1 parent 1721081 commit 36ef18d

File tree

2 files changed

+19
-16
lines changed

2 files changed

+19
-16
lines changed

.github/workflows/main.yml

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,11 @@ jobs:
3535
python-version: pypy3
3636

3737
steps:
38-
- uses: "actions/checkout@v3"
38+
- uses: actions/checkout@v4
3939
with:
4040
# We want our tags here
4141
fetch-depth: 0
42-
- uses: "actions/setup-python@v4"
42+
- uses: actions/setup-python@v5
4343
with:
4444
python-version: "${{ matrix.python-version }}"
4545
- name: "Install dependencies"
@@ -53,29 +53,32 @@ jobs:
5353
run: "python -m tox"
5454

5555
- name: Upload coverage data
56-
uses: actions/upload-artifact@v3
56+
uses: actions/upload-artifact@v4
5757
with:
58-
name: coverage-data
59-
path: ".coverage.*"
58+
name: coverage-data-${{ matrix.python-version }}-${{ matrix.os }}
59+
path: ".coverage*"
6060
if-no-files-found: ignore
61+
include-hidden-files: true
62+
6163

6264
coverage:
6365
needs:
6466
- tests
6567
runs-on: ubuntu-latest
6668
steps:
67-
- uses: actions/checkout@v3
68-
- uses: actions/setup-python@v4
69+
- uses: actions/checkout@v4
70+
- uses: actions/setup-python@v5
6971
with:
7072
python-version: "3.12"
7173

7274
- name: Install coverage
7375
run: python -m pip install --upgrade coverage[toml]
7476

7577
- name: Download coverage data
76-
uses: actions/download-artifact@v2
78+
uses: actions/download-artifact@v4
7779
with:
78-
name: coverage-data
80+
pattern: coverage-data-*
81+
merge-multiple: true
7982

8083
- name: Combine coverage
8184
run: python -m coverage combine
@@ -85,7 +88,7 @@ jobs:
8588
run: python -m coverage html --skip-covered --skip-empty --ignore-errors
8689

8790
- name: Upload the HTML report
88-
uses: actions/upload-artifact@v3
91+
uses: actions/upload-artifact@v4
8992
with:
9093
name: html-report
9194
path: htmlcov
@@ -99,7 +102,7 @@ jobs:
99102
runs-on: "ubuntu-latest"
100103

101104
steps:
102-
- uses: "actions/checkout@v3"
105+
- uses: actions/checkout@v4
103106
with:
104107
# We want our tags here
105108
fetch-depth: 0
@@ -114,8 +117,8 @@ jobs:
114117
runs-on: "${{ matrix.os }}"
115118

116119
steps:
117-
- uses: "actions/checkout@v3"
118-
- uses: "actions/setup-python@v4"
120+
- uses: actions/checkout@v4
121+
- uses: actions/setup-python@v5
119122
with:
120123
python-version: "3.12"
121124
- name: "Install in dev mode"

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
runs-on: ubuntu-latest
2626

2727
steps:
28-
- uses: actions/checkout@v3
28+
- uses: actions/checkout@v4
2929
with:
3030
# Fetch all tags; this is needed for hatch-vcs
3131
fetch-depth: 0
@@ -43,7 +43,7 @@ jobs:
4343

4444
steps:
4545
- name: Download packages built by build-and-inspect-python-package
46-
uses: actions/download-artifact@v3
46+
uses: actions/download-artifact@v4
4747
with:
4848
name: Packages
4949
path: dist
@@ -64,7 +64,7 @@ jobs:
6464
(github.event_name == 'workflow_dispatch' && startsWith(github.event.ref, 'refs/tags'))
6565
6666
steps:
67-
- uses: actions/download-artifact@v3
67+
- uses: actions/download-artifact@v4
6868
with:
6969
name: Packages
7070
path: dist

0 commit comments

Comments
 (0)