-
Notifications
You must be signed in to change notification settings - Fork 785
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3d14a3d
commit afc299b
Showing
1 changed file
with
32 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: auto-tests | ||
|
||
on: | ||
pull_request: | ||
push: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
env: | ||
TOGETHER_API_KEY: ${{ secrets.TOGETHER_API_KEY }} | ||
FIREWORKS_API_KEY: ${{ secrets.FIREWORKS_API_KEY }} | ||
TAVILY_SEARCH_API_KEY: ${{ secrets.TAVILY_SEARCH_API_KEY }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Echo branch name | ||
run: echo "Running on branch ${{ github.ref }}" | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install -r requirements.txt pytest | ||
pip install -e . | ||
- name: Build providers | ||
run: | | ||
llama stack build --template fireworks --image-type venv | ||
llama stack build --template together --image-type venv | ||
- name: Run Together test | ||
working-directory: "${{ github.workspace }}" | ||
run: | | ||
LLAMA_STACK_CONFIG=./llama_stack/templates/together/run.yaml | ||
pytest tests/client-sdk/inference/inference.py |