-
Notifications
You must be signed in to change notification settings - Fork 0
57 lines (54 loc) · 1.72 KB
/
python-tests.ci.yml
File metadata and controls
57 lines (54 loc) · 1.72 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
name: Python Tests (Offline)
on:
push:
branches: [main]
paths:
- "backend/**"
- "agents/**"
- ".github/workflows/python-tests.ci.yml"
pull_request:
branches: [main]
paths:
- "backend/**"
- "agents/**"
jobs:
backend:
runs-on: ubuntu-latest
defaults:
run:
working-directory: backend
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.13"
- name: Install deps
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install -e .
pip install pytest pytest-asyncio pytest-cov
- name: Run backend offline tests
run: pytest -m "not external and not openai" --cov=app --cov-report=xml --cov-report=term-missing
- name: Upload backend coverage
uses: codecov/codecov-action@v4
with:
files: ./backend/coverage.xml
agents:
runs-on: ubuntu-latest
defaults:
run:
working-directory: agents
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.13"
- name: Install deps
run: |
python -m pip install --upgrade pip
pip install -r ../backend/requirements.txt
pip install -e .
pip install pytest pytest-asyncio
- name: Run agent offline tests
run: pytest -v -m "not external and not openai"