Refactor #384
Workflow file for this run
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 | |
pull_request: | |
branches: | |
- main | |
name: test-coverage | |
jobs: | |
test-coverage: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: r-lib/actions/setup-r@v2 | |
- uses: r-lib/actions/setup-pandoc@v2 | |
with: | |
pandoc-version: '2.7.3' | |
- name: install gdal | |
run: | | |
# install spatial dependencies | |
sudo add-apt-repository ppa:ubuntugis/ubuntugis-unstable | |
sudo apt update | |
sudo apt install \ | |
libudunits2-dev \ | |
libgdal-dev \ | |
libgeos-dev \ | |
libproj-dev \ | |
libharfbuzz-dev \ | |
libfribidi-dev | |
- name: Install renv | |
shell: Rscript {0} | |
run: | | |
install.packages("renv") | |
- uses: actions/cache@v2 | |
with: | |
path: ~/Library/Application Support/renv | |
key: ${{ runner.os }}-renv-${{ hashFiles('**/renv.lock') }} | |
restore-keys: | | |
${{ runner.os }}-renv- | |
- name: Test coverage | |
shell: Rscript {0} | |
run: | | |
renv::restore() | |
covr::codecov() | |