Skip to content

Commit 8f56792

Browse files
committed
Enhance CI Workflow for Coverage Reporting
### Added - Upload coverage artifact after tests. - Download all coverage artifacts for reporting. ### Changed - Updated Codecov action to version 4 and adjusted parameters for artifact directory.
1 parent d3397f1 commit 8f56792

1 file changed

Lines changed: 24 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,30 @@ jobs:
4848
run: |
4949
pytest --cov=agent_docstrings --cov-report=xml --cov-report=term-missing
5050
51+
- name: Upload coverage artifact
52+
uses: actions/upload-artifact@v4
53+
with:
54+
name: coverage-${{ matrix.python-version }}-${{ matrix.beta }}
55+
path: coverage.xml
56+
57+
report:
58+
name: Report Coverage
59+
runs-on: ubuntu-latest
60+
needs: test
61+
steps:
62+
- name: Checkout repository
63+
uses: actions/checkout@v4
64+
65+
- name: Download all coverage artifacts
66+
uses: actions/download-artifact@v4
67+
with:
68+
path: coverage-artifacts
69+
pattern: coverage-*
70+
merge-multiple: true
71+
5172
- name: Upload coverage to Codecov
52-
uses: codecov/codecov-action@v3
73+
uses: codecov/codecov-action@v4
5374
with:
54-
files: coverage.xml
75+
token: ${{ secrets.CODECOV_TOKEN }}
76+
directory: ./coverage-artifacts/
5577
fail_ci_if_error: true

0 commit comments

Comments
 (0)