@@ -26,17 +26,15 @@ jobs:
26
26
- uses : actions/checkout@v4
27
27
with :
28
28
persist-credentials : false
29
-
30
- - name : Install Ruff
31
- uses : astral-sh/ruff-action@v3
29
+ - name : Install uv
30
+ uses : astral-sh/setup-uv@v6
32
31
with :
33
- args : --version
34
-
32
+ version : latest
33
+ enable-cache : false
35
34
- name : Lint with Ruff
36
- run : ruff check --output-format=github
37
-
35
+ run : uv run ruff check --output-format=github
38
36
- name : Format with Ruff
39
- run : ruff format --diff
37
+ run : uv run ruff format --diff
40
38
41
39
mypy :
42
40
runs-on : ubuntu-latest
@@ -45,19 +43,13 @@ jobs:
45
43
- uses : actions/checkout@v4
46
44
with :
47
45
persist-credentials : false
48
- - name : Set up Python
49
- uses : actions/setup-python@v5
50
- with :
51
- python-version : " 3"
52
46
- name : Install uv
53
47
uses : astral-sh/setup-uv@v6
54
48
with :
55
49
version : latest
56
50
enable-cache : false
57
- - name : Install dependencies
58
- run : uv pip install -r pyproject.toml --group package --group test --group types
59
51
- name : Type check with mypy
60
- run : mypy
52
+ run : uv run mypy
61
53
62
54
pyright :
63
55
runs-on : ubuntu-latest
@@ -66,19 +58,13 @@ jobs:
66
58
- uses : actions/checkout@v4
67
59
with :
68
60
persist-credentials : false
69
- - name : Set up Python
70
- uses : actions/setup-python@v5
71
- with :
72
- python-version : " 3"
73
61
- name : Install uv
74
62
uses : astral-sh/setup-uv@v6
75
63
with :
76
64
version : latest
77
65
enable-cache : false
78
- - name : Install dependencies
79
- run : uv pip install -r pyproject.toml --group package --group test --group types
80
66
- name : Type check with pyright
81
- run : pyright
67
+ run : uv run pyright
82
68
83
69
docs-lint :
84
70
runs-on : ubuntu-latest
@@ -102,18 +88,12 @@ jobs:
102
88
- uses : actions/checkout@v4
103
89
with :
104
90
persist-credentials : false
105
- - name : Set up Python
106
- uses : actions/setup-python@v5
107
- with :
108
- python-version : " 3"
109
91
- name : Install uv
110
92
uses : astral-sh/setup-uv@v6
111
93
with :
112
94
version : latest
113
95
enable-cache : false
114
- - name : Install dependencies
115
- run : uv pip install --group package
116
96
- name : Lint with twine
117
97
run : |
118
- python -m build .
119
- twine check dist/*
98
+ uv build
99
+ uv run twine check dist/*
0 commit comments