-
Notifications
You must be signed in to change notification settings - Fork 7
41 lines (34 loc) · 1.18 KB
/
test-unit-scheduled.yml
File metadata and controls
41 lines (34 loc) · 1.18 KB
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
name: Tier 1 - daily scheduled unit tests against llama-stack main
on:
schedule:
- cron: '0 8 * * *'
workflow_dispatch:
jobs:
integration-test:
name: "Tier 1 - daily scheduled unit tests against llama-stack main"
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Python 3.12
uses: actions/setup-python@v4
with:
python-version: "3.12"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install git+https://github.com/llamastack/llama-stack.git@main#subdirectory=src/llama_stack_api
python -m pip install git+https://github.com/llamastack/llama-stack.git@main
python -m pip install -e . --no-deps
python -m pip install pytest>=7.0.0 pytest-asyncio>=0.21.0 pytest-httpx>=0.21.0 pytest-mock>=3.10.0
- name: Run unit tests
run: |
python -m pytest tests/unit/ -v
- name: Upload logs on failure
if: failure()
uses: actions/upload-artifact@v4
with:
name: test-logs
path: |
*.log
tests/**/*.log