Skip to content

test-coverage

test-coverage #100

Workflow file for this run

on:
workflow_dispatch:
push:
paths:
- '**.R'
branches:
- main
pull_request:
branches:
- main
name: test-coverage
jobs:
test-coverage:
runs-on: ubuntu-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v3
- uses: r-lib/actions/setup-r@v2
with:
r-version: "release"
- uses: r-lib/actions/setup-pandoc@v2
- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: any::rcmdcheck, any::covr, local::.
needs: check
- name: Test coverage
run: covr::codecov()
shell: Rscript {0}