From 9c7359b5aa95c0fd106138221d31b596c54b5acd Mon Sep 17 00:00:00 2001 From: Sixian Yi Date: Wed, 22 Jan 2025 23:56:03 -0800 Subject: [PATCH] citest --- .github/workflows/tests.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/tests.yml diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml new file mode 100644 index 0000000000..2dce587b00 --- /dev/null +++ b/.github/workflows/tests.yml @@ -0,0 +1,31 @@ +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_OUTPUT" + - 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 + run: | + LLAMA_STACK_CONFIG=./llama_stack/templates/together/run.yaml + pytest tests/client-sdk/inference/inference.py