Skip to content

ci(lint): revert to action without renv, but add notebook packages to… #10

ci(lint): revert to action without renv, but add notebook packages to…

ci(lint): revert to action without renv, but add notebook packages to… #10

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
- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: any::lintr, local::.
needs: lint
- name: Lint package
run: lintr::lint_package()
shell: Rscript {0}
- name: Lint notebooks
run: lintr::lint_dir("notebooks")
shell: Rscript {0}