From 010700aacc7f20b65988bd00e64b570261277bb4 Mon Sep 17 00:00:00 2001 From: Caleb Courier Date: Tue, 21 Nov 2023 13:40:33 -0600 Subject: [PATCH] show pypdfium2 pip show pypdfium2 on install explicitly install pypdfium2 remove additional pip shows try venv try not installing pypdfium2 try poetry run prefix try poetry virtualenvs try poetry add for openai jupyter nbconvert --- .github/workflows/examples_check.yml | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/.github/workflows/examples_check.yml b/.github/workflows/examples_check.yml index 725328af2..7e2167d96 100644 --- a/.github/workflows/examples_check.yml +++ b/.github/workflows/examples_check.yml @@ -31,15 +31,26 @@ jobs: - name: Install Poetry uses: snok/install-poetry@v1 + with: + virtualenvs-create: true + virtualenvs-in-project: true + installer-parallel: true - name: Install dependencies - run: make full; pip install openai==0.28.1 jupyter nbconvert; pip install . + run: | + make full; + poetry add openai==0.28.1 jupyter nbconvert; + # pip install openai==0.28.1 jupyter nbconvert; + # pip install .; + + - name: Check for pypdfium2 + run: poetry run pip show pypdfium2 - name: Execute notebooks and check for errors run: | cd docs/examples for notebook in $(ls *.ipynb); do - jupyter nbconvert --to notebook --execute "$notebook" + poetry run jupyter nbconvert --to notebook --execute "$notebook" if [ $? -ne 0 ]; then echo "Error found in $notebook" exit 1