-
Notifications
You must be signed in to change notification settings - Fork 4
47 lines (41 loc) · 1.28 KB
/
vanilla_workflow.yaml
File metadata and controls
47 lines (41 loc) · 1.28 KB
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
name: CI for Vanilla Notebooks
on:
push:
branches:
- main
- pm-143
paths:
- '.github/workflows/vanilla_workflow.yaml'
- 'recipes/RAG/RAG_over_NH_Caselaw_Summarize.ipynb'
- 'recipes/Graph/Entity_Extraction_from_NH_Caselaw.ipynb'
pull_request:
branches:
- main
- pm-143
paths:
- '.github/workflows/vanilla_workflow.yaml'
- 'recipes/RAG/RAG_over_NH_Caselaw_Summarize.ipynb'
- 'recipes/Graph/Entity_Extraction_from_NH_Caselaw.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