File tree Expand file tree Collapse file tree 1 file changed +53
-0
lines changed
Expand file tree Collapse file tree 1 file changed +53
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Test & Lint Python
2+
3+ permissions :
4+ contents : read
5+
6+ on :
7+ push :
8+ branches : ["main"]
9+ pull_request :
10+
11+ jobs :
12+ ruff :
13+ runs-on : ubuntu-latest
14+ steps :
15+ - name : Checkout
16+ uses : actions/checkout@v4
17+
18+ - name : Install uv
19+ uses : astral-sh/setup-uv@v6
20+
21+ - name : Set up Python
22+ uses : actions/setup-python@v5
23+ with :
24+ python-version : " 3.13"
25+
26+ - name : Run ruff check
27+ run : uvx ruff check src/
28+
29+ - name : Run ruff format check
30+ run : uvx ruff format --check src/
31+
32+ pytest :
33+ runs-on : ubuntu-latest
34+ strategy :
35+ matrix :
36+ python-version : ["3.11", "3.12", "3.13"]
37+ steps :
38+ - name : Checkout
39+ uses : actions/checkout@v4
40+
41+ - name : Install uv
42+ uses : astral-sh/setup-uv@v6
43+
44+ - name : Set up Python ${{ matrix.python-version }}
45+ uses : actions/setup-python@v5
46+ with :
47+ python-version : ${{ matrix.python-version }}
48+
49+ - name : Install dependencies
50+ run : uv sync --extra test
51+
52+ - name : Run tests
53+ run : uv run pytest
You can’t perform that action at this time.
0 commit comments