From aea8f34dca63e89b46f6b0f23aff11069e27e756 Mon Sep 17 00:00:00 2001 From: Alan Lujan Date: Wed, 20 Nov 2024 16:31:47 -0500 Subject: [PATCH] Update paths for running examples and executing notebooks --- .github/workflows/examples.yml | 2 +- .github/workflows/execute-notebooks.yml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/examples.yml b/.github/workflows/examples.yml index 8b60b124c..6cec8b04d 100644 --- a/.github/workflows/examples.yml +++ b/.github/workflows/examples.yml @@ -35,4 +35,4 @@ jobs: pip install ".[dev]" - name: Run examples run: | - pytest --nbval-lax --nbval-current-env --dist loadscope -n auto examples/ + pytest --nbval-lax --nbval-current-env --dist loadscope -n auto docs/examples/ diff --git a/.github/workflows/execute-notebooks.yml b/.github/workflows/execute-notebooks.yml index 140b2c881..d201eb971 100644 --- a/.github/workflows/execute-notebooks.yml +++ b/.github/workflows/execute-notebooks.yml @@ -49,11 +49,11 @@ jobs: python -m pip install ipykernel nbclient nbformat - name: Strip output - run: nbstripout examples/**/*.ipynb + run: nbstripout docs/examples/**/*.ipynb # This step takes c. 20 minutes - name: Execute notebooks - run: python tools/nb_exec.py examples/**/*.ipynb + run: python tools/nb_exec.py docs/examples/**/*.ipynb env: PYTHONUNBUFFERED: "1"