Skip to content

Commit 0807437

Browse files
author
Victor Bajada
committed
Fixes coverage data upload in CI
Updates the CI workflow to correctly upload coverage data as an artifact. Changes the path for coverage data upload to be relative, and includes hidden files to ensure all data is captured. This resolves issues where the coverage data file was not found during the upload process.
1 parent 4c4939b commit 0807437

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,12 +115,15 @@ jobs:
115115
stat .coverage.${{ matrix.python-version }} || echo "File vanished!"
116116
echo "Working directory contents:"
117117
ls -la
118+
echo "Current path:"
119+
pwd
118120
119121
- name: Upload coverage data
120122
uses: actions/upload-artifact@v4
121123
with:
122124
name: coverage-data-${{ matrix.python-version }}
123-
path: ${{ github.workspace }}/.coverage.${{ matrix.python-version }}
125+
path: .coverage.${{ matrix.python-version }}
126+
include-hidden-files: true
124127
if-no-files-found: warn
125128

126129
coverage:

0 commit comments

Comments
 (0)