Skip to content

Testing

Testing #150

on:
push:
branches:
- master
pull_request:
branches:
- master
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@v2
- uses: r-lib/actions/setup-r@v2
id: install-r
- 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 '/usr/local/bin/gfortran'
brew install udunits
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()'