Summary snack WIP #11
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |