Skip to content

chore: enforce stricter ruff on docs notebooks (#574) #261

chore: enforce stricter ruff on docs notebooks (#574)

chore: enforce stricter ruff on docs notebooks (#574) #261

Workflow file for this run

name: Test Notebooks
on:
pull_request:
branches: [main]
paths:
- "pyproject.toml"
- "causalpy/**"
- ".github/workflows/test_notebook.yml"
- "scripts/run_notebooks/**"
- "docs/source/notebooks/**"
push:
branches: [main]
paths:
- "pyproject.toml"
- "causalpy/**"
- ".github/workflows/test_notebook.yml"
- "scripts/run_notebooks/**"
- "docs/source/notebooks/**"
permissions: {}
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
notebooks:
runs-on: ubuntu-latest
permissions:
contents: read
timeout-minutes: 60
strategy:
matrix:
split:
- "--pattern *_pymc*.ipynb"
- "--pattern *_skl*.ipynb"
- "--exclude-pattern _pymc --exclude-pattern _skl"
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
with:
python-version: "3.12"
- name: Install system dependencies
run: sudo apt-get update && sudo apt-get install -y graphviz
- name: Install dependencies
run: |
pip install --upgrade pip
pip install -e ".[test,docs]"
- name: Run notebooks
run: python scripts/run_notebooks/runner.py ${{ matrix.split }}