-
Notifications
You must be signed in to change notification settings - Fork 793
32 lines (30 loc) · 1008 Bytes
/
tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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