Skip to content

Update R-CMD-check.yaml #145

Update R-CMD-check.yaml

Update R-CMD-check.yaml #145

on:
push:
branches:
- master
- development
pull_request:
branches:
- master
- development
name: test-coverage
jobs:
test-coverage:
if: "!contains(github.event.commits[0].message, '[skip-ci]')"
runs-on: macOS-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v4
- uses: r-lib/actions/setup-pandoc@v2
- uses: PredictiveEcology/actions/install-spatial-deps@main
- uses: r-lib/actions/setup-r@v2
with:
extra-repositories: 'https://predictiveecology.r-universe.dev/'
Ncpus: 2
use-public-rspm: false
- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: |
any::covr
fastshp=?ignore
PredictiveEcology/quickPlot@development
PredictiveEcology/reproducible@development
PredictiveEcology/Require@development
PredictiveEcology/SpaDES.core@development
PredictiveEcology/SpaDES.tools@development
- name: Install additional package dependencies
run: |
pak::pkg_install("remotes")
remotes::install_github("s-u/fastshp")
shell: Rscript {0}
- name: Test coverage
run: covr::codecov()
shell: Rscript {0}