Skip to content

Summary snack WIP

Summary snack WIP #11

name: CI for Vanilla Notebooks
on:
push:
branches:
- main
- pm-143
paths:
- recipes/Summarize/Summarize.ipynb
- 'recipes/RAG/RAG_with_Langchain.ipynb'
- recipes/Guard-Rails/HAP.ipynb
- '.github/notebook_lists/vanilla_notebooks.txt'
pull_request:
branches:
- main
- pm-143
paths:
- '.github/workflows/vanilla_workflow.yaml'
- recipes/Summarize/Summarize.ipynb
- 'recipes/RAG/RAG_with_Langchain.ipynb'
- recipes/Guard-Rails/HAP.ipynb
jobs:
test-vanilla-notebooks:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install nbconvert nbclient ipykernel
- name: Run Vanilla Notebooks
env:
REPLICATE_API_TOKEN: ${{ secrets.REPLICATE_API_TOKEN }}
run: |
notebooks=$(cat .github/notebook_lists/vanilla_notebooks.txt | tr '\n' ' ')
for notebook in $notebooks; do
echo "Executing $notebook"
jupyter nbconvert --to notebook --execute --inplace $notebook
done