-
Notifications
You must be signed in to change notification settings - Fork 14
39 lines (37 loc) · 1.44 KB
/
nb_runner.yml
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
name: "Run notebooks"
on:
workflow_dispatch: # no body
schedule:
- cron: "0 17 * * *" # UTC-based
jobs:
run-notebooks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Refresh pkg info # https://github.com/actions/runner-images/issues/8047
run: sudo apt-get update
- name: Install system dependencies
run: sudo apt-get install poppler-utils
- name: Install poetry
run: pipx install poetry==1.6.1
- uses: actions/setup-python@v4
with:
python-version: "3.10"
cache: poetry
- name: Install package and dependencies
run: poetry install
- name: Run notebooks
env:
DEEPSEARCH_HOST: ${{ vars.DEEPSEARCH_HOST }}
DEEPSEARCH_USERNAME: ${{ secrets.DEEPSEARCH_USERNAME }}
DEEPSEARCH_API_KEY: ${{ secrets.DEEPSEARCH_API_KEY }}
DEEPSEARCH_VERIFY_SSL: ${{ vars.DEEPSEARCH_VERIFY_SSL }}
DS_NB_PROJ_KEY: ${{ vars.DS_NB_PROJ_KEY }}
DS_NR_EXCLUDED: ${{ vars.DS_NR_EXCLUDED }}
DS_NB_QA_IDX_KEY: ${{ vars.DS_NB_QA_IDX_KEY }}
DS_NB_QA_DOC_HASH: ${{ vars.DS_NB_QA_DOC_HASH }}
DS_NB_QUESTION: ${{ vars.DS_NB_QUESTION }}
DS_NB_GEN_TIMEOUT: ${{ vars.DS_NB_GEN_TIMEOUT }}
DS_NB_GEN_CTX_WIN_SIZE: ${{ vars.DS_NB_GEN_CTX_WIN_SIZE }}
DS_NB_INDEX_KEY: ${{ vars.DS_NB_INDEX_KEY }}
run: poetry run python -m nbrunner.nb_runner