-
Notifications
You must be signed in to change notification settings - Fork 33
49 lines (43 loc) · 1.29 KB
/
vanilla_workflow.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
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