File tree Expand file tree Collapse file tree 1 file changed +52
-0
lines changed Expand file tree Collapse file tree 1 file changed +52
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Lint and Test
2+
3+ on :
4+ pull_request :
5+ push :
6+ branches :
7+ - master
8+
9+ jobs :
10+ lint_test :
11+ runs-on : ubuntu-latest
12+ strategy :
13+ fail-fast : false
14+ matrix :
15+ python-version : ['3.13']
16+
17+ env :
18+ UV_CACHE_DIR : ~/.cache/uv
19+
20+ steps :
21+ - uses : actions/checkout@v4
22+
23+ - name : Set up Python ${{ matrix.python-version }}
24+ uses : actions/setup-python@v5
25+ with :
26+ python-version : ${{ matrix.python-version }}
27+
28+ - name : Set up uv
29+ uses : astral-sh/setup-uv@v1
30+
31+ - name : Cache uv dependencies
32+ uses : actions/cache@v4
33+ with :
34+ path : ${{ env.UV_CACHE_DIR }}
35+ key : ${{ runner.os }}-uv-${{ matrix.python-version }}-${{ hashFiles('**/uv.lock') }}
36+ restore-keys : |
37+ ${{ runner.os }}-uv-${{ matrix.python-version }}-
38+
39+ - name : Install dependencies
40+ run : uv sync --all-extras --dev
41+
42+ - name : Run mypy
43+ run : uv run mypy kona
44+
45+ - name : Run ruff check
46+ run : uv run ruff check --output-format=github .
47+
48+ - name : Run ruff format
49+ run : uv run ruff format --check .
50+
51+ - name : Prune uv cache
52+ run : uv cache prune
You can’t perform that action at this time.
0 commit comments