From c5f57006b730ad78766ef67be74b0daeef3a2867 Mon Sep 17 00:00:00 2001 From: Chester Curme Date: Wed, 25 Sep 2024 18:43:25 -0400 Subject: [PATCH] fix --- .github/workflows/run_notebooks.yml | 3 --- docs/scripts/prepare_notebooks_for_ci.py | 6 +++++- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/run_notebooks.yml b/.github/workflows/run_notebooks.yml index 03e8e1b220598..424c795a93fea 100644 --- a/.github/workflows/run_notebooks.yml +++ b/.github/workflows/run_notebooks.yml @@ -55,6 +55,3 @@ jobs: LANGSMITH_API_KEY: ${{ secrets.LANGSMITH_API_KEY }} run: | ./docs/scripts/execute_notebooks.sh - - - name: Stop services - run: make stop-services diff --git a/docs/scripts/prepare_notebooks_for_ci.py b/docs/scripts/prepare_notebooks_for_ci.py index d7ebc626b068f..92f7c3e455ee1 100644 --- a/docs/scripts/prepare_notebooks_for_ci.py +++ b/docs/scripts/prepare_notebooks_for_ci.py @@ -1,5 +1,6 @@ """Preprocess notebooks for CI. Currently adds VCR cassettes and optionally removes pip install cells.""" +import json import logging import os @@ -7,7 +8,7 @@ import nbformat logger = logging.getLogger(__name__) -NOTEBOOK_DIRS = ("docs/docs/how-tos","docs/docs/tutorials") +NOTEBOOK_DIRS = ("docs/docs/tutorials",) DOCS_PATH = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) CASSETTES_PATH = os.path.join(DOCS_PATH, "cassettes") @@ -24,6 +25,9 @@ "docs/docs/tutorials/sql_qa.ipynb", # Requires Chinook db locally ] +with open(os.path.join(DOCS_PATH, "notebooks_no_execution.json"), "w") as f: + json.dump(NOTEBOOKS_NO_EXECUTION, f) + def comment_install_cells(notebook: nbformat.NotebookNode) -> nbformat.NotebookNode: for cell in notebook.cells: