Marc Kupietz | 1ae886b | 2021-12-21 19:04:05 +0100 | [diff] [blame] | 1 | # 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 |
| 3 | on: |
| 4 | push: |
| 5 | branches: [main, master] |
Marc Kupietz | 39af4a6 | 2023-04-19 20:21:16 +0200 | [diff] [blame^] | 6 | paths-ignore: |
| 7 | - '**.md' |
Marc Kupietz | 1ae886b | 2021-12-21 19:04:05 +0100 | [diff] [blame] | 8 | pull_request: |
| 9 | branches: [main, master] |
Marc Kupietz | 39af4a6 | 2023-04-19 20:21:16 +0200 | [diff] [blame^] | 10 | paths-ignore: |
| 11 | - '**.md' |
Marc Kupietz | 1ae886b | 2021-12-21 19:04:05 +0100 | [diff] [blame] | 12 | |
| 13 | name: test-coverage |
| 14 | |
| 15 | jobs: |
| 16 | test-coverage: |
| 17 | runs-on: ubuntu-latest |
| 18 | env: |
| 19 | GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} |
| 20 | |
| 21 | steps: |
Marc Kupietz | e222b53 | 2023-04-17 19:12:10 +0200 | [diff] [blame] | 22 | - uses: actions/checkout@v3 |
Marc Kupietz | 1ae886b | 2021-12-21 19:04:05 +0100 | [diff] [blame] | 23 | |
Marc Kupietz | 8da4691 | 2022-02-25 07:08:02 +0100 | [diff] [blame] | 24 | - uses: r-lib/actions/setup-r@v2 |
Marc Kupietz | 1ae886b | 2021-12-21 19:04:05 +0100 | [diff] [blame] | 25 | with: |
| 26 | use-public-rspm: true |
| 27 | |
Marc Kupietz | 8da4691 | 2022-02-25 07:08:02 +0100 | [diff] [blame] | 28 | - uses: r-lib/actions/setup-r-dependencies@v2 |
Marc Kupietz | 1ae886b | 2021-12-21 19:04:05 +0100 | [diff] [blame] | 29 | with: |
Marc Kupietz | 12d1074 | 2022-06-29 21:20:57 +0200 | [diff] [blame] | 30 | extra-packages: any::covr, any::XML |
Marc Kupietz | 8da4691 | 2022-02-25 07:08:02 +0100 | [diff] [blame] | 31 | needs: coverage |
Marc Kupietz | 1ae886b | 2021-12-21 19:04:05 +0100 | [diff] [blame] | 32 | |
| 33 | - name: Test coverage |
Marc Kupietz | 8da4691 | 2022-02-25 07:08:02 +0100 | [diff] [blame] | 34 | run: covr::codecov(quiet = FALSE) |
Marc Kupietz | 1ae886b | 2021-12-21 19:04:05 +0100 | [diff] [blame] | 35 | shell: Rscript {0} |