Skip to content

Commit 280ad9c

Browse files
github/workflows: Add per-class function coverage checks to CI
- Updated `test-and-publish.yml` with a new step to check class function coverage for `PdfRestClient` and `AsyncPdfRestClient`. - Ensured minimum 90% coverage thresholds for specified classes. - Configured Markdown reporting for detailed class function coverage data. Assisted-by: Codex
1 parent 97459ce commit 280ad9c

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

.github/workflows/test-and-publish.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,14 @@ jobs:
4848
--compare-branch origin/${{ github.base_ref }}
4949
--fail-under 90
5050
--markdown-report coverage/py${{ matrix.python-version }}/diff-cover.md
51+
- name: Check client class function coverage
52+
run: >
53+
python scripts/check_class_function_coverage.py
54+
coverage/py${{ matrix.python-version }}/coverage.json
55+
--class PdfRestClient
56+
--class AsyncPdfRestClient
57+
--fail-under 90
58+
--markdown-report coverage/py${{ matrix.python-version }}/class-function-coverage.md
5159
- name: Upload coverage reports
5260
if: always()
5361
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)