Skip to content

Commit 94209a3

Browse files
author
github-actions
committed
fix(ci): Fix Codecov coverage upload with explicit source and paths
- Specify explicit coverage source: --cov=src/ryandata_address_utils - Use explicit output filename: --cov-report=xml:coverage.xml - Add ./ prefix to file paths for Codecov action
1 parent 694c620 commit 94209a3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/tests.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,13 +60,13 @@ jobs:
6060

6161
- name: Test with pytest
6262
run: |
63-
uv run pytest --cov --cov-report=xml --junitxml=junit.xml
63+
uv run pytest --cov=src/ryandata_address_utils --cov-report=xml:coverage.xml --junitxml=junit.xml
6464
6565
- name: Upload coverage to Codecov
6666
uses: codecov/codecov-action@v5
6767
with:
6868
token: ${{ secrets.CODECOV_TOKEN }}
69-
files: coverage.xml
69+
files: ./coverage.xml
7070
flags: unittests-py${{ matrix.python-version }}
7171
fail_ci_if_error: true
7272
verbose: true
@@ -76,4 +76,4 @@ jobs:
7676
uses: codecov/test-results-action@v1
7777
with:
7878
token: ${{ secrets.CODECOV_TOKEN }}
79-
files: junit.xml
79+
files: ./junit.xml

0 commit comments

Comments
 (0)