Skip to content

Commit

Permalink
cleanup workflows and fix deps on one notebook
Browse files Browse the repository at this point in the history
  • Loading branch information
tylerhutcherson committed Jan 28, 2025
1 parent 5ab0e39 commit 26be0d3
Show file tree
Hide file tree
Showing 4 changed files with 3,097 additions and 1,794 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/nightly-test.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
name: Notebooks - Nightly
name: Tests - Nightly Run

on:
schedule:
- cron: "0 3 * * *" # 3 AM UTC nightly
workflow_dispatch:

env:
PYTHON_VERSION: "3.11"

jobs:
# ---------------------------------------------------------
# 1) Gather all notebooks (except skip-list)
Expand Down Expand Up @@ -79,7 +82,7 @@ jobs:
# Setup Python
- uses: actions/setup-python@v4
with:
python-version: '3.11'
python-version: ${{ env.PYTHON_VERSION }}

- name: Create and activate venv
run: |
Expand All @@ -91,9 +94,6 @@ jobs:
- name: Test notebook
env:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
LLAMA_CLOUD_API_KEY: ${{ secrets.LLAMA_CLOUD_API_KEY }}
GCP_REGION: ${{ secrets.GCP_REGION }}
GCP_PROJECT_ID: ${{ secrets.GCP_PROJECT_ID }}
COHERE_API_KEY: ${{ secrets.COHERE_API_KEY }}
run: |
echo "Testing notebook: ${{ matrix.notebook }}"
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
name: Notebooks - PR/Push
name: Tests - PR/Push

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

env:
PYTHON_VERSION: "3.11"

jobs:
# ---------------------------------------------------------
# 1) Gather the changed notebooks to produce a matrix list
Expand Down Expand Up @@ -86,7 +89,7 @@ jobs:
# Setup Python
- uses: actions/setup-python@v4
with:
python-version: '3.11'
python-version: ${{ env.PYTHON_VERSION }}

- name: Create and activate venv
run: |
Expand All @@ -98,9 +101,6 @@ jobs:
- name: Test notebook
env:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
LLAMA_CLOUD_API_KEY: ${{ secrets.LLAMA_CLOUD_API_KEY }}
GCP_REGION: ${{ secrets.GCP_REGION }}
GCP_PROJECT_ID: ${{ secrets.GCP_PROJECT_ID }}
COHERE_API_KEY: ${{ secrets.COHERE_API_KEY }}
run: |
echo "Testing notebook: ${{ matrix.notebook }}"
Expand Down
Loading

0 comments on commit 26be0d3

Please sign in to comment.