-
Notifications
You must be signed in to change notification settings - Fork 737
66 lines (55 loc) · 1.67 KB
/
ci-test.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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
name: Integration-test
on:
workflow_dispatch:
push:
run-name:
"CI test"
env:
TESTS_PATH: "${{ github.workspace }}/llama_stack/providers/tests"
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 --upgrade pytest
pip install --upgrade pytest-html
run_tests:
name: Run tests
runs-on: ubuntu-latest
needs:
build
steps:
- name: Check out code
uses: actions/checkout@v3
- name: Run integration test
working-directory: "${{ github.workspace }}"
run: |
export FIREWORKS_API_KEY=${{ secrets.FIREWORKS_API_KEY }}
export TOGETHER_API_KEY=${{ secrets.TOGETHER_API_KEY }}
echo "Current directory: $(pwd)"
echo "Repository root: ${{ github.workspace }}"
echo "Branch: ${{ github.ref }}"
echo "List of tests"
ls -R
ls -la
$(which pytest) ${{ github.workspace }}/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() }}