adding tutorials to notebook checks (#1747)

* wip

* actually catch errors

* fixing tool-calling-errors and persistence-redis

* poetry changes

* poetry update

* run tutorials

* only tutorials (testing)

* print errors

* rewoo fixes

* remove customer support because of user input

* skip notebooks programatically

* add back how-tos

* remove redundant if

* add cassetes for tutorials

* remove no execution since it is generated by CI,

* remove multi-agent/usaco

* try to run in parallel

* skip notebooks fix

* remove magic/non-magic cells

* msgpack instead of yaml

* prepare_notebooks change

* ignore msgpack for spelling

* use compression for cassettes

* update spell check

* reset poetry changes

* upgrade packages for latest

* no update

* poetry changes
This commit is contained in:
Isaac Francisco
2024-09-20 12:11:23 -07:00
committed by GitHub
parent 10a66acc44
commit 662eae4359
322 changed files with 345 additions and 32249 deletions
+1 -1
View File
@@ -32,7 +32,7 @@
- name: Codespell
uses: codespell-project/actions-codespell@v2
with:
skip: '*.ambr,*.lock,*.ipynb,*.yaml'
skip: '*.ambr,*.lock,*.ipynb,*.yaml,*.zlib'
ignore_words_list: ${{ steps.extract_ignore_words.outputs.ignore_words_list }}
# We do this to avoid spellchecking cell outputs
- name: Codespell Notebooks
+6
View File
@@ -28,6 +28,11 @@ jobs:
run: |
poetry install --with test
poetry run pip install jupyter
if [ "${{ matrix.lib-version }}" = "latest" ]; then
poetry add chromadb pandas langchain_nomic
poetry remove langchain-openai langchain-anthropic langchain-community
poetry add langchain-openai@latest langchain-anthropic@latest langchain-community@latest
fi
- name: Start services
run: make start-services
@@ -48,6 +53,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