We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 4b8f568 + a8bcf7b commit 4354acfCopy full SHA for 4354acf
1 file changed
.github/workflows/main.yml
@@ -0,0 +1,43 @@
1
+name: CI
2
+
3
+on:
4
+ pull_request:
5
+ branches: [main]
6
+ push:
7
8
9
+jobs:
10
+ test:
11
+ runs-on: ubuntu-latest
12
13
+ strategy:
14
+ matrix:
15
+ python-version: ["3.11", "3.12", "3.13"]
16
17
+ steps:
18
+ - uses: actions/checkout@v4
19
20
+ - name: Set up uv
21
+ uses: astral-sh/setup-uv@v7
22
+ with:
23
+ enable-cache: true
24
+ cache-dependency-glob: |
25
+ uv.lock
26
+ pyproject.toml
27
+ - name: Install Python
28
+ run: uv python install ${{ matrix.python-version }}
29
30
+ - name: Sync dependencies
31
+ run: uv sync --frozen
32
33
+ - name: Ruff format (check)
34
+ run: uv run ruff format --check .
35
36
+ - name: Ruff lint
37
+ run: uv run ruff check .
38
39
+ - name: Mypy
40
+ run: uv run mypy src tests
41
42
+ - name: Run tests
43
+ run: uv run pytest
0 commit comments