Skip to content

Commit 4c0c168

Browse files
github/workflows: Update diff-cover fetch and report format configuration
- Changed `git fetch` depth from `1` to `0` for full history in diff-cover. - Full history needed for diff-cover to find the merge base. - Updated diff-cover report generation to use `--format markdown:<file-path>`, avoiding warning of deprecated option. Assisted-by: Codex
1 parent 0559593 commit 4c0c168

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,14 @@ jobs:
4040
PDFREST_API_KEY: ${{ secrets.PDFREST_API_KEY }}
4141
- name: Fetch base branch for diff-cover
4242
if: github.event_name == 'pull_request'
43-
run: git fetch origin ${{ github.base_ref }} --depth=1
43+
run: git fetch origin ${{ github.base_ref }} --depth=0
4444
- name: Run diff-cover (new code must be >= 90%)
4545
if: github.event_name == 'pull_request'
4646
run: >
4747
uv run diff-cover coverage/py${{ matrix.python-version }}/coverage.xml
4848
--compare-branch origin/${{ github.base_ref }}
4949
--fail-under 90
50-
--markdown-report coverage/py${{ matrix.python-version }}/diff-cover.md
50+
--format markdown:coverage/py${{ matrix.python-version }}/diff-cover.md
5151
- name: Check client class function coverage
5252
run: >
5353
uv run python scripts/check_class_function_coverage.py

0 commit comments

Comments
 (0)