Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Explore feasibility of github actions to test the notebooks #12

Open
antonum opened this issue Dec 19, 2023 · 0 comments
Open

Explore feasibility of github actions to test the notebooks #12

antonum opened this issue Dec 19, 2023 · 0 comments

Comments

@antonum
Copy link
Collaborator

antonum commented Dec 19, 2023

Explore the possibility of automatically testing the notebooks.

https://github.com/treebeardtech/nbmake

The following command line sequence works locally for some notebooks and fails for othes, but can be a promising avenue to explore:

python3 -m venv venv
source venv/bin/activate
pip install pytest nbmake
export OPENAI_API_KEY="sk-xxxxxxxxx-add-your-openai-api-key-here-xxxxxxxx"
pytest --nbmake **/*ipynb

Plain Redis notebooks (00-03), pass the tests while connecting to the laptop-local redis. OpenAI fails with either getpass if no OPENAI_API_KEY is defined or IndexError: list index out of range.

Dolly-based notebooks timeout (exclude from tests or increase timeout) - executing Dolly on CPU is expected to take an extra long time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant