File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : CI
2+
3+ on :
4+ push :
5+ branches : [main]
6+ pull_request :
7+ branches : [main]
8+
9+ permissions :
10+ contents : read
11+
12+ jobs :
13+ lint :
14+ name : Lint (ruff)
15+ runs-on : ubuntu-latest
16+ steps :
17+ - uses : actions/checkout@v4
18+
19+ - name : Set up Python
20+ uses : actions/setup-python@v5
21+ with :
22+ python-version : " 3.12"
23+ cache : pip
24+ cache-dependency-path : |
25+ requirements.txt
26+ requirements-dev.txt
27+
28+ - name : Install dependencies
29+ run : |
30+ python -m pip install --upgrade pip
31+ pip install -r requirements-dev.txt
32+
33+ - name : Run ruff check
34+ run : ruff check .
35+
36+ - name : Run ruff format check
37+ run : ruff format --check .
38+
39+ test :
40+ name : Test (pytest)
41+ runs-on : ubuntu-latest
42+ strategy :
43+ fail-fast : false
44+ matrix :
45+ python-version : ["3.11", "3.12"]
46+ steps :
47+ - uses : actions/checkout@v4
48+
49+ - name : Set up Python ${{ matrix.python-version }}
50+ uses : actions/setup-python@v5
51+ with :
52+ python-version : ${{ matrix.python-version }}
53+ cache : pip
54+ cache-dependency-path : |
55+ requirements.txt
56+ requirements-dev.txt
57+
58+ - name : Install dependencies
59+ run : |
60+ python -m pip install --upgrade pip
61+ pip install -r requirements-dev.txt
62+
63+ - name : Run pytest
64+ run : pytest -v --tb=short
65+
66+ typecheck :
67+ name : Type check (mypy)
68+ runs-on : ubuntu-latest
69+ steps :
70+ - uses : actions/checkout@v4
71+
72+ - name : Set up Python
73+ uses : actions/setup-python@v5
74+ with :
75+ python-version : " 3.12"
76+ cache : pip
77+ cache-dependency-path : |
78+ requirements.txt
79+ requirements-dev.txt
80+
81+ - name : Install dependencies
82+ run : |
83+ python -m pip install --upgrade pip
84+ pip install -r requirements-dev.txt
85+
86+ - name : Run mypy
87+ run : mypy app tests || true # non-blocking until types are fully clean
You can’t perform that action at this time.
0 commit comments