Skip to content

Commit 83a3d89

Browse files
authored
Fix the upload of coverage report to codecov (#588)
Checkout the repository in the codecov-upload job before uploading the coverage reports to codecov.
1 parent 0067909 commit 83a3d89

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/test.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,18 @@ jobs:
168168

169169
steps:
170170

171+
- name: Checkout
172+
uses: actions/checkout@v5
173+
with:
174+
# Need to fetch more than the last commit so that setuptools-scm can
175+
# create the correct version string. If the number of commits since
176+
# the last release is greater than this, the version still be wrong.
177+
# Increase if necessary.
178+
fetch-depth: 100
179+
# The GitHub token is preserved by default but this job doesn't need
180+
# to be able to push to GitHub.
181+
persist-credentials: false
182+
171183
- name: Download coverage report artifacts
172184
# Download coverage reports from every runner.
173185
# Maximum coverage is achieved by combining reports from every runner.

0 commit comments

Comments
 (0)