- Notifications
You must be signed in to change notification settings - Fork108
coverage#41
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
| name:coverage | |
| on: | |
| push: | |
| paths: | |
| -'.github/workflows/coverage.yaml' | |
| pull_request: | |
| branches: | |
| -main | |
| paths: | |
| -'.github/workflows/coverage.yaml' | |
| -'R/**' | |
| -'tests/**' | |
| schedule:# monthly | |
| -cron:"0 09 1 * *" | |
| workflow_dispatch: | |
| jobs: | |
| coverage: | |
| runs-on:ubuntu-24.04 | |
| name:coverage | |
| env: | |
| NOT_CRAN:TRUE | |
| steps: | |
| -uses:actions/checkout@v4 | |
| -name:Setup r2u | |
| uses:eddelbuettel/github-actions/r2u-setup@master | |
| with: | |
| bspm-version-check:"FALSE" | |
| -name:Install dependencies | |
| run:sudo bash scripts/ci/install-dependencies.sh | |
| -name:Session information | |
| run:sessionInfo() | |
| shell:Rscript {0} | |
| -name:Test coverage | |
| env: | |
| CODECOV_TOKEN:${{ secrets.CODECOV_TOKEN }} | |
| run:| | |
| library("covr") | |
| x <- package_coverage(quiet = FALSE, clean = FALSE) | |
| print(x) | |
| codecov(coverage = x) | |
| shell:Rscript {0} |