From 821ac674ab156d99020ed29a570cbf1c1166e96b Mon Sep 17 00:00:00 2001 From: Hardik Shah Date: Thu, 16 Jan 2025 11:24:50 -0800 Subject: [PATCH] Add notebook testing to nightly build job (#785) # What does this PR do? Adds testing of the notebook to the nightly build job ## Test Plan Here is a sample run -- https://github.com/meta-llama/llama-stack/actions/runs/12815889197?pr=785 --------- Co-authored-by: Hardik Shah --- .github/workflows/publish-to-test-pypi.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/publish-to-test-pypi.yml b/.github/workflows/publish-to-test-pypi.yml index 957761235..35cbc4dc3 100644 --- a/.github/workflows/publish-to-test-pypi.yml +++ b/.github/workflows/publish-to-test-pypi.yml @@ -199,7 +199,13 @@ jobs: - publish-to-testpypi - trigger-client-and-models-build runs-on: ubuntu-latest + env: + TOGETHER_API_KEY: ${{ secrets.TOGETHER_API_KEY }} + TAVILY_SEARCH_API_KEY: ${{ secrets.TAVILY_SEARCH_API_KEY }} steps: + - uses: actions/checkout@v4 + with: + persist-credentials: false - name: Install the package run: | max_attempts=6 @@ -228,5 +234,10 @@ jobs: llama stack list-apis llama stack list-providers inference llama stack list-providers telemetry + - name: Test Notebook + run: | + pip install pytest nbval + llama stack build --template together --image-type venv + pytest -v -s --nbval-lax ./docs/notebooks/Llama_Stack_Building_AI_Applications.ipynb # TODO: add trigger for integration test workflow & docker builds