Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
sixianyi0721 committed Jan 10, 2025
1 parent 39957b2 commit c2ef2e5
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 9 deletions.
19 changes: 15 additions & 4 deletions .github/workflows/ci-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,20 @@ jobs:
fairscale lm-format-enforcer \
zmq chardet pypdf \
pandas sentence_transformers together \
aiosqlite groq ollama fireworks \
aiosqlite groq ollama fireworks-ai \
pytest-html pytest-asyncio
- name: Install Ollama
run: |
curl -fsSL https://ollama.com/install.sh | sh
- name: spin up ollama server
run: |
which -a ollama
ollama run llama3.2-vision:11b-instruct-fp16
ollama run llama3.1:8b-instruct-fp16
sleep 10
- name: Run integration test
working-directory: "${{ github.workspace }}"
run: |
Expand All @@ -60,12 +71,12 @@ jobs:
echo "Repository root: ${{ github.workspace }}"
echo "Branch: ${{ github.ref }}"
echo "List of tests"
pytest ${{ github.workspace }}/llama_stack/providers/tests/ --html=report.html --config=ci_test_config.yaml
pytest ${{ github.workspace }}/llama_stack/providers/tests/ --config=ci_test_config.yaml
- name: Upload pytest test results
uses: actions/upload-artifact@v4
with:
name: report.html
path: report.html
name: pytest_report.md
path: pytest_report.md
# Use always() to always run this step to publish test results when there are test failures
if: ${{ always() }}
4 changes: 2 additions & 2 deletions llama_stack/providers/tests/ci_test_config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ inference_fixtures:
- ollama
- fireworks
- together
- tgi
- vllm_remote
# - tgi
# - vllm_remote

test_models:
text: meta-llama/Llama-3.1-8B-Instruct
Expand Down
3 changes: 0 additions & 3 deletions llama_stack/providers/tests/report.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,7 @@


from collections import defaultdict
<<<<<<< HEAD
from pathlib import Path
=======
>>>>>>> 991f0e0 (ci test report)

import pytest
from llama_models.datatypes import CoreModelId
Expand Down

0 comments on commit c2ef2e5

Please sign in to comment.