Skip to content

minor refactor

minor refactor #7

Workflow file for this run

# 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]
name: test-coverage
permissions: read-all
jobs:
test-coverage:
runs-on: ubuntu-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
R_KEEP_PKG_SOURCE: yes
_R_CHECK_CRAN_INCOMING_: false
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:
pak-version: devel
upgrade: 'TRUE'
cache-version: 2
extra-packages: |
any::covr
local::.
needs: coverage
- name: Test coverage
run: |
options(crayon.enabled = TRUE)
covr::codecov(
quiet = FALSE,
clean = FALSE,
token = "${{secrets.CODECOV_TOKEN}}"
)
shell: Rscript {0}