Skip to content

Merge pull request #109 from StoXProject/develop #78

Merge pull request #109 from StoXProject/develop

Merge pull request #109 from StoXProject/develop #78

on:
push:
branches:
- master
- testing
pull_request:
branches:
- testing
- develop
name: test-coverage
jobs:
test-coverage:
runs-on: macOS-latest
env:
R_REMOTES_NO_ERRORS_FROM_WARNINGS: true
RSPM: ${{ matrix.config.rspm }}
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v3
- uses: r-lib/actions/setup-r@v2
id: install-r
with:
r-version: "4.2"
- name: Install query dependencies
run: |
install.packages('remotes')
saveRDS(remotes::dev_package_deps(dependencies = TRUE), ".github/depends.Rds", version = 2)
shell: Rscript {0}
- name: Install MacOS dependencies
if: runner.os == 'macOS'
run: |
rm -f '/usr/local/bin/gfortran'
brew install udunits proj
shell: bash
- name: Install dependencies
run: |
remotes::install_deps(dependencies = TRUE)
remotes::install_cran("drat")
remotes::install_cran("covr")
shell: Rscript {0}
- name: Test coverage
run: |
R CMD INSTALL .
Rscript -e 'covr::codecov()'