-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (42 loc) · 1.66 KB
/
Copy pathci.yml
File metadata and controls
52 lines (42 loc) · 1.66 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
name: OpenKyrozen CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
lint-and-test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.12", "3.13"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install fastapi uvicorn
- name: Install package and run unit tests
run: |
pip install -e .
python -m unittest discover -s tests -p 'test_*.py' -v
- name: Syntax check
run: |
python -c "compile(open('main.py').read(), 'main.py', 'exec'); print('main.py OK')"
python -c "compile(open('tools.py').read(), 'tools.py', 'exec'); print('tools.py OK')"
python -c "compile(open('memory.py').read(), 'memory.py', 'exec'); print('memory.py OK')"
python -c "compile(open('providers.py').read(), 'providers.py', 'exec'); print('providers.py OK')"
python -c "compile(open('server.py').read(), 'server.py', 'exec'); print('server.py OK')"
- name: Tool inventory check
run: |
python -c "from tools import AVAILABLE_TOOLS; assert len(AVAILABLE_TOOLS) >= 24, f'Expected >=24 tools, got {len(AVAILABLE_TOOLS)}'; print(f'{len(AVAILABLE_TOOLS)} tools OK')"
- name: Provider import check
run: |
python -c "from providers import *; print('All providers imported OK')"
- name: Docker build check
run: docker build -t openkyrozen-test .