Skip to content

Commit

Permalink
adding codecov GHA
Browse files Browse the repository at this point in the history
  • Loading branch information
pbreheny committed Oct 18, 2024
1 parent e144caa commit adc9f01
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/test-coverage.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
on:
push:
branches: [main, master]
pull_request:
branches: [main, master]

name: test-coverage

permissions: read-all

jobs:
test-coverage:
runs-on: ubuntu-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}

steps:
- uses: actions/checkout@v4

- uses: r-lib/actions/setup-r@v2
with:
use-public-rspm: true

- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: |
any::covr
any::glmnet
any::pROC
any::survival
needs: coverage

- name: Test coverage
run: covr::codecov(quiet=FALSE)
shell: Rscript {0}

0 comments on commit adc9f01

Please sign in to comment.