forked from phoenix-oss/llama-stack-mirror
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 --
1281588919
---------
Co-authored-by: Hardik Shah <hjshah@fb.com>
This commit is contained in:
parent
8d30ecb91a
commit
821ac674ab
1 changed files with 11 additions and 0 deletions
11
.github/workflows/publish-to-test-pypi.yml
vendored
11
.github/workflows/publish-to-test-pypi.yml
vendored
|
@ -199,7 +199,13 @@ jobs:
|
||||||
- publish-to-testpypi
|
- publish-to-testpypi
|
||||||
- trigger-client-and-models-build
|
- trigger-client-and-models-build
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
env:
|
||||||
|
TOGETHER_API_KEY: ${{ secrets.TOGETHER_API_KEY }}
|
||||||
|
TAVILY_SEARCH_API_KEY: ${{ secrets.TAVILY_SEARCH_API_KEY }}
|
||||||
steps:
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
persist-credentials: false
|
||||||
- name: Install the package
|
- name: Install the package
|
||||||
run: |
|
run: |
|
||||||
max_attempts=6
|
max_attempts=6
|
||||||
|
@ -228,5 +234,10 @@ jobs:
|
||||||
llama stack list-apis
|
llama stack list-apis
|
||||||
llama stack list-providers inference
|
llama stack list-providers inference
|
||||||
llama stack list-providers telemetry
|
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
|
# TODO: add trigger for integration test workflow & docker builds
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue