Skip to content

Refactor

Refactor #385

Workflow file for this run

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()