Skip to content

Merge pull request #38 from AscentSoftware/feat/ropesci #35

Merge pull request #38 from AscentSoftware/feat/ropesci

Merge pull request #38 from AscentSoftware/feat/ropesci #35

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:
name: dtlg Package Coverage
permissions:
contents: read
pull-requests: write
checks: write
jobs:
coverage:
name: coverage
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: r-lib/actions/setup-pandoc@v2
- uses: r-lib/actions/setup-r@v2
with:
use-public-rspm: true
extra-repositories: https://ascentsoftware.r-universe.dev
- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: any::covr, any::xml2
needs: coverage
- name: Test coverage
run: |
cov <- covr::package_coverage(
quiet = FALSE,
clean = FALSE,
install_path = file.path(normalizePath(Sys.getenv("RUNNER_TEMP"), winslash = "/"), "package")
)
covr::to_cobertura(cov)
shell: Rscript {0}
- name: Code Coverage Report
if: github.event_name == 'pull_request'
uses: 5monkeys/cobertura-action@master
with:
path: cobertura.xml
minimum_coverage: 60
only_changed_files: true