Skip to content

Commit

Permalink
only tutorials (testing)
Browse files Browse the repository at this point in the history
  • Loading branch information
isahers1 committed Sep 17, 2024
1 parent a0e6c7a commit 5576dc5
Show file tree
Hide file tree
Showing 4 changed files with 1,494 additions and 26 deletions.
1 change: 1 addition & 0 deletions .github/workflows/run_notebooks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ jobs:
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
TAVILY_API_KEY: ${{ secrets.TAVILY_API_KEY }}
LANGSMITH_API_KEY: ${{ secrets.LANGSMITH_API_KEY }}
NOMIC_API_KEY: ${{ secrets.NOMIC_API_KEY }}
run: |
./docs/_scripts/execute_notebooks.sh
Expand Down
3 changes: 2 additions & 1 deletion docs/_scripts/execute_notebooks.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
errors=() # Initialize an array to collect errors

for file in $(find docs/docs/how-tos docs/docs/tutorials -name "*.ipynb" | grep -v ".ipynb_checkpoints")
for file in $(find docs/docs/tutorials -name "*.ipynb" | grep -v ".ipynb_checkpoints")
do
echo "Executing $file"
if ! output=$(poetry run jupyter execute "$file" 2>&1); then
errors+=("$file: $output") # Add a tuple of the file and error message to the errors list
exit 1
fi
done

Expand Down
Loading

0 comments on commit 5576dc5

Please sign in to comment.