π Further slackening the package by transferring to BNRTools #281
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/v2-branch/examples | |
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help | |
on: | |
push: | |
branches: [master, dev] | |
pull_request: | |
branches: [master] | |
workflow_dispatch: | |
name: test-coverage | |
jobs: | |
test-coverage: | |
if: "!contains(github.event.commits[0].message, '[skip-ci]')" | |
runs-on: ubuntu-latest | |
env: | |
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: r-lib/actions/setup-r@v2 | |
with: | |
use-public-rspm: true | |
- name: Install gdal and igraph dependencies on Linux (gdal) | |
run: | | |
if [ "$RUNNER_OS" == "Linux" ]; then | |
sudo apt-get -y install \ | |
libudunits2-dev libgdal-dev libgeos-dev libproj-dev libglpk-dev | |
elif [ "$RUNNER_OS" == "macOS" ]; then | |
brew install --cask xquartz | |
brew install pkg-config | |
brew install proj | |
brew install geos | |
brew install gdal | |
else | |
echo "Nothing to do" | |
fi | |
shell: bash | |
- uses: r-lib/actions/setup-r-dependencies@v2 | |
with: | |
extra-packages: any::covr | |
needs: coverage | |
- name: Test coverage | |
run: covr::codecov(quiet = FALSE) | |
shell: Rscript {0} |