-
Notifications
You must be signed in to change notification settings - Fork 3
executable file
·45 lines (36 loc) · 1.08 KB
/
ci.yml
File metadata and controls
executable file
·45 lines (36 loc) · 1.08 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
name: Test
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Install test dependencies
run: |
pip install pytest pytest-asyncio httpx
- name: Test imports
run: |
python -c "from app.main import app; print('✅ App imports successfully')"
- name: Run tests
env:
USE_MOCK_DB: "true"
LM_STUDIO_URL: "http://localhost:1234"
CLIP_SERVICE_URL: "http://localhost:8002"
run: |
python -m pytest tests/unit/test_basic_functionality.py tests/unit/test_basic_modules.py tests/unit/test_factory.py -v --tb=short
- name: Build Docker image
run: |
docker build -t second-brain:test .
echo "✅ Docker build successful"