Skip to content

Commit 9deeb2b

Browse files
committed
test coverage only once
1 parent 6ab14b9 commit 9deeb2b

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

.github/workflows/R-CMD-check.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ jobs:
120120
needs: website, coverage
121121

122122
- name: Test coverage
123+
if: github.event_name == 'push' && matrix.config.os == 'macOS-latest'
123124
run: |
124125
cov <- covr::package_coverage(
125126
quiet = FALSE,
@@ -131,6 +132,7 @@ jobs:
131132
shell: Rscript {0}
132133

133134
- uses: codecov/codecov-action@v5
135+
if: github.event_name == 'push' && matrix.config.os == 'macOS-latest'
134136
with:
135137
# Fail if error if not on PR, or if on PR and token is given
136138
fail_ci_if_error: ${{ github.event_name != 'pull_request' || secrets.CODECOV_TOKEN }}

0 commit comments

Comments
 (0)