From 3beacbe44af3cd657d3fe53067f012d8f1ca3a8c Mon Sep 17 00:00:00 2001 From: Nikhil Woodruff Date: Fri, 20 Dec 2024 08:35:18 +0000 Subject: [PATCH] Add check to PR action --- .github/workflows/pull_request.yaml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/pull_request.yaml b/.github/workflows/pull_request.yaml index c4411d8..f25a2a8 100644 --- a/.github/workflows/pull_request.yaml +++ b/.github/workflows/pull_request.yaml @@ -53,3 +53,13 @@ jobs: run: pytest - name: Test documentation builds run: make documentation + + - name: Check documentation build + run: | + for notebook in $(find docs/_build/jupyter_execute -name "*.ipynb"); do + if grep -q '"output_type": "error"' "$notebook"; then + echo "Error found in $notebook" + cat "$notebook" + exit 1 + fi + done