Skip to content

Commit cf3e596

Browse files
committed
fix(ci): fetch history for differential coverage
1 parent 4df14f1 commit cf3e596

1 file changed

Lines changed: 2 additions & 8 deletions

File tree

.github/workflows/regression-tests.yml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,8 @@ jobs:
5959

6060
steps:
6161
- uses: actions/checkout@v6
62+
with:
63+
fetch-depth: ${{ matrix.coverage && '0' || '1' }}
6264
- name: Set up miniforge ${{matrix.python-version}}
6365
uses: conda-incubator/setup-miniconda@v3
6466
with:
@@ -108,14 +110,6 @@ jobs:
108110
coverage xml -o coverage.xml
109111
coverage report --format=total | awk '{print "### Test coverage: " $1 "%"}' >> "$GITHUB_STEP_SUMMARY"
110112
111-
- name: Fetch pull request base
112-
if: matrix.coverage && github.event_name == 'pull_request'
113-
env:
114-
BASE_REF: ${{github.base_ref}}
115-
run: |
116-
git fetch --no-tags --depth=1 origin \
117-
"+refs/heads/${BASE_REF}:refs/remotes/origin/${BASE_REF}"
118-
119113
- name: Create differential coverage report
120114
if: matrix.coverage && github.event_name == 'pull_request'
121115
env:

0 commit comments

Comments
 (0)