Skip to content

Commit

Permalink
Add upload instruction
Browse files Browse the repository at this point in the history
  • Loading branch information
fouodo committed Jul 18, 2024
1 parent c717e41 commit 59b3996
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions .github/workflows/R-CMD-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,16 +52,9 @@ jobs:
upload-snapshots: true
build_args: 'c("--no-manual","--compact-vignettes=gs+qpdf")'

- name: Upload coverage to Codecov
uses: codecov/[email protected]
with:
verbose: true
- name: Run tests
run: |
Rscript -e 'install.packages("covr");library(covr);cov <- package_coverage();save_coverage(cov, file = "coverage.json")'
Rscript -e 'install.packages("covr");library(covr);package_coverage()'
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

- name: Upload coverage to Codecov
run: bash <(curl -s https://codecov.io/bash) -f coverage.json -t ${{ secrets.CODECOV_TOKEN }}

0 comments on commit 59b3996

Please sign in to comment.