Run notebooks #395
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: "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 |