blob: 4a96993578f6c83ed2f3f29e88d2663e3b2cf113 [file] [log] [blame]
Marc Kupietz1ae886b2021-12-21 19:04:05 +01001# Workflow derived from https://github.com/r-lib/actions/tree/master/examples
2# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
3on:
4 push:
5 branches: [main, master]
6 pull_request:
7 branches: [main, master]
8
9name: test-coverage
10
11jobs:
12 test-coverage:
13 runs-on: ubuntu-latest
14 env:
15 GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
16
17 steps:
Marc Kupietze222b532023-04-17 19:12:10 +020018 - uses: actions/checkout@v3
Marc Kupietz1ae886b2021-12-21 19:04:05 +010019
Marc Kupietz8da46912022-02-25 07:08:02 +010020 - uses: r-lib/actions/setup-r@v2
Marc Kupietz1ae886b2021-12-21 19:04:05 +010021 with:
22 use-public-rspm: true
23
Marc Kupietz8da46912022-02-25 07:08:02 +010024 - uses: r-lib/actions/setup-r-dependencies@v2
Marc Kupietz1ae886b2021-12-21 19:04:05 +010025 with:
Marc Kupietz12d10742022-06-29 21:20:57 +020026 extra-packages: any::covr, any::XML
Marc Kupietz8da46912022-02-25 07:08:02 +010027 needs: coverage
Marc Kupietz1ae886b2021-12-21 19:04:05 +010028
29 - name: Test coverage
Marc Kupietz8da46912022-02-25 07:08:02 +010030 run: covr::codecov(quiet = FALSE)
Marc Kupietz1ae886b2021-12-21 19:04:05 +010031 shell: Rscript {0}