Merge pull request #19 from PredictiveEcology/celineTest #48
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
push: | |
branches: | |
- main | |
- master | |
- development | |
pull_request: | |
branches: | |
- main | |
- 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 | |
- name: Install macOS system dependencies | |
if: runner.os == 'macOS' | |
run: | | |
brew install pkg-config | |
brew install gdal | |
- uses: r-lib/actions/setup-r@v2 | |
with: | |
extra-repositories: 'https://r-spatial.r-universe.dev/' | |
Ncpus: 2 | |
use-public-rspm: false | |
- name: Install sf from r-universe | |
run: | | |
install.packages("sf") | |
shell: Rscript {0} | |
- uses: r-lib/actions/setup-r-dependencies@v2 | |
with: | |
extra-packages: | | |
any::covr | |
- name: Test coverage | |
run: covr::codecov() | |
shell: Rscript {0} |