Skip to content

Commit

Permalink
GH CI test config
Browse files Browse the repository at this point in the history
  • Loading branch information
sixianyi0721 committed Jan 9, 2025
1 parent 991f0e0 commit 886e456
Showing 1 changed file with 58 additions and 0 deletions.
58 changes: 58 additions & 0 deletions .github/workflows/ci-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
name: Integration-test

on:
workflow_dispatch:
push:

run-name:
"CI test"

# env:
# FIREWORKS_API_KEY=${{ secrets.FIREWORKS_API_KEY }}
# TOGETHER_API_KEY=${{ secrets.TOGETHER_API_KEY }}

jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'

- name: "Checkout 'meta-llama/llama-stack' repository"
id: checkout_repo
uses: actions/checkout@v4
# with:
# ref: ${{ inputs.branch }}

- name: Install dependencies
run:
python -m pip install --upgrade pip
pip install pytest
pip install pytest-html

- name: Set up provider env
run: |
echo {{ secrets.TOGETHER_API_KEY }}
run_tests:
name: Run tests
runs-on: ubuntu-latest
needs:
build
steps:
- name:
run: |
pytest /llama-stack/llama_stack/providers/tests/. --html=report.html --config=ci_test_config.yaml
- name: Upload pytest test results
uses: actions/upload-artifact@v4
with:
name: report.html
path: report.html
# Use always() to always run this step to publish test results when there are test failures
if: ${{ always() }}

0 comments on commit 886e456

Please sign in to comment.