Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ccurme committed Sep 25, 2024
1 parent a06a27e commit c5f5700
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/run_notebooks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
6 changes: 5 additions & 1 deletion docs/scripts/prepare_notebooks_for_ci.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
"""Preprocess notebooks for CI. Currently adds VCR cassettes and optionally removes pip install cells."""

import json
import logging
import os

import click
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")

Expand All @@ -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:
Expand Down

0 comments on commit c5f5700

Please sign in to comment.