gitignore all paths except modulePath
, but only if inside `projectP…
#212
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 | |
- development | |
pull_request: | |
branches: | |
- main | |
- 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/[email protected] | |
- uses: r-lib/actions/setup-r@v2 | |
with: | |
Ncpus: 2 | |
use-public-rspm: false | |
- uses: r-lib/actions/setup-r-dependencies@v2 | |
with: | |
extra-packages: | | |
any::covr | |
fastshp=?ignore | |
NLMR=?ignore | |
PredictiveEcology/Require@simplify4 | |
PredictiveEcology/reproducible@development | |
PredictiveEcology/SpaDES.tools@development | |
- name: Install additional package dependencies | |
run: | | |
pak::pkg_install("ropensci/NLMR") | |
remotes::install_github("s-u/fastshp") | |
shell: Rscript {0} | |
- name: Test coverage | |
run: covr::codecov() | |
shell: Rscript {0} |