Skip to content

ci(lint): add igraph system dependencies #9

ci(lint): add igraph system dependencies

ci(lint): add igraph system dependencies #9

Workflow file for this run

# 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