@@ -14,16 +14,11 @@ jobs:
14
14
with :
15
15
enable-cache : true
16
16
17
- - name : " Set up Python"
18
- uses : actions/setup-python@v5
19
- with :
20
- python-version-file : " .python-version"
21
-
22
17
- name : Install the project
23
- run : uv sync --frozen --all-extras --dev
18
+ run : uv sync --frozen --all-extras --dev --python 3.12
24
19
25
20
- name : Run ruff format check
26
- run : uv run --frozen ruff check .
21
+ run : uv run --no-sync ruff check .
27
22
28
23
typecheck :
29
24
runs-on : ubuntu-latest
@@ -35,19 +30,17 @@ jobs:
35
30
with :
36
31
enable-cache : true
37
32
38
- - name : " Set up Python"
39
- uses : actions/setup-python@v5
40
- with :
41
- python-version-file : " .python-version"
42
-
43
33
- name : Install the project
44
- run : uv sync --frozen --all-extras --dev
34
+ run : uv sync --frozen --all-extras --dev --python 3.12
45
35
46
36
- name : Run pyright
47
- run : uv run --frozen pyright
37
+ run : uv run --no-sync pyright
48
38
49
- build :
39
+ test :
50
40
runs-on : ubuntu-latest
41
+ strategy :
42
+ matrix :
43
+ python-version : ["3.10", "3.11", "3.12", "3.13"]
51
44
52
45
steps :
53
46
- uses : actions/checkout@v4
57
50
with :
58
51
enable-cache : true
59
52
60
- - name : " Set up Python"
61
- uses : actions/setup-python@v5
62
- with :
63
- python-version-file : " .python-version"
64
-
65
53
- name : Install the project
66
- run : uv sync --frozen --all-extras --dev
54
+ run : uv sync --frozen --all-extras --dev --python ${{ matrix.python-version }}
67
55
68
56
- name : Run pytest
69
- run : uv run --frozen pytest
57
+ run : uv run --no-sync pytest
0 commit comments