ci(lint): add igraph system dependencies #9
This file contains hidden or 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
# This file will lint the specified files/directories. | |
# Workflow adapted from https://github.com/r-lib/actions/tree/v2/examples | |
on: | |
push: | |
workflow_dispatch: | |
name: lint | |
permissions: read-all | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
env: | |
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: r-lib/actions/setup-r@v2 | |
with: | |
use-public-rspm: true | |
- name: Install system dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y libxml2-dev libglpk-dev | |
- name: Install R dependencies | |
uses: r-lib/actions/setup-renv@v2 | |
- name: Lint package | |
run: lintr::lint_package() | |
shell: Rscript {0} | |
env: | |
LINTR_ERROR_ON_LINT: true | |
- name: Lint notebooks | |
run: lintr::lint_dir("notebooks") | |
shell: Rscript {0} | |
env: | |
LINTR_ERROR_ON_LINT: true |