Skip to content

Commit

Permalink
add gha for coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
tanho63 committed Jul 24, 2022
1 parent 8f341b7 commit b1d4751
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 1 deletion.
1 change: 0 additions & 1 deletion .github/workflows/R-CMD-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ jobs:
- {os: ubuntu-20.04, r: 'release'}
- {os: ubuntu-18.04, r: 'oldrel-1'}
env:
RSPM: ${{ matrix.config.rspm }}
TAN_GH_TOKEN: ${{ secrets.TAN_GH_TOKEN }}
R_KEEP_PKG_SOURCE: yes

Expand Down
34 changes: 34 additions & 0 deletions .github/workflows/test-coverage.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Workflow derived from https://github.com/r-lib/actions/tree/v2/examples
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
on:
push:
branches: [main, master]
pull_request:
branches: [main, master]
workflow_dispatch:

name: test-coverage

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

steps:
- uses: actions/checkout@v2

- 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
needs: coverage

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

0 comments on commit b1d4751

Please sign in to comment.