File tree Expand file tree Collapse file tree 1 file changed +45
-0
lines changed
Expand file tree Collapse file tree 1 file changed +45
-0
lines changed Original file line number Diff line number Diff line change 1+ name : CI
2+
3+ on :
4+ pull_request :
5+ branches : [develop, main]
6+
7+ jobs :
8+ lint :
9+ name : Lint & Format
10+ runs-on : ubuntu-latest
11+ steps :
12+ - uses : actions/checkout@v4
13+
14+ - uses : actions/setup-python@v5
15+ with :
16+ python-version : " 3.12"
17+
18+ - name : Install Ruff
19+ run : pip install ruff>=0.9.0
20+
21+ - name : Ruff check
22+ run : ruff check .
23+
24+ - name : Ruff format check
25+ run : ruff format --check .
26+
27+ test :
28+ name : Test & Coverage
29+ runs-on : ubuntu-latest
30+ steps :
31+ - uses : actions/checkout@v4
32+
33+ - uses : actions/setup-python@v5
34+ with :
35+ python-version : " 3.12"
36+ cache : pip
37+
38+ - name : Install dependencies
39+ run : |
40+ pip install --upgrade pip
41+ pip install fastapi uvicorn python-multipart python-dotenv
42+ pip install pytest pytest-asyncio httpx pytest-cov
43+
44+ - name : Run tests with coverage
45+ run : pytest --cov --cov-report=term-missing --cov-fail-under=80
You can’t perform that action at this time.
0 commit comments