Merge pull request #123 from djsir-data/mrjoh3-patch-1 #124
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
# Workflow derived from https://github.com/r-lib/actions/tree/master/examples | |
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help | |
on: | |
push: | |
branches: [main, master] | |
pull_request: | |
branches: [main, master] | |
name: test-coverage | |
jobs: | |
test-coverage: | |
runs-on: ubuntu-latest | |
env: | |
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Installing extra system dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y libcurl4-openssl-dev libudunits2-dev libxml2-dev libglpk-dev | |
- uses: r-lib/actions/setup-r@v2 | |
with: | |
r-version: 'renv' | |
- uses: r-lib/actions/setup-renv@v2 | |
- name: Additional R packages | |
run: | | |
Rscript -e "renv::install(c('covr','testthat'))" | |
- name: Test coverage | |
run: covr::codecov() | |
shell: Rscript {0} |