File tree Expand file tree Collapse file tree 1 file changed +48
-0
lines changed
Expand file tree Collapse file tree 1 file changed +48
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Code Quality
2+ on :
3+ push :
4+ branches : [main]
5+ pull_request :
6+ branches : [main]
7+ workflow_dispatch :
8+ concurrency :
9+ group : ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
10+ cancel-in-progress : true
11+ jobs :
12+ ruff :
13+ name : Ruff
14+ runs-on : ubuntu-latest
15+ steps :
16+ - uses : actions/checkout@v4
17+ - name : Ruff Check
18+ uses : astral-sh/ruff-action@v3
19+ with :
20+ version : latest
21+ - name : Ruff Format
22+ uses : astral-sh/ruff-action@v3
23+ with :
24+ version : latest
25+ args : format --check
26+ pyright :
27+ name : Type Check
28+ runs-on : ubuntu-latest
29+ needs : ruff
30+ steps :
31+ - uses : actions/checkout@v4
32+ - name : Set up Python
33+ uses : actions/setup-python@v5
34+ with :
35+ python-version-file : " .python-version"
36+ - name : Install uv
37+ uses : astral-sh/setup-uv@v5
38+ with :
39+ enable-cache : true
40+ cache-dependency-glob : " uv.lock"
41+ - name : Install dependencies
42+ run : |
43+ uv venv
44+ uv sync --dev
45+ - name : Run pyright
46+ run : |
47+ source .venv/bin/activate
48+ basedpyright
You can’t perform that action at this time.
0 commit comments