Commit 211b5f0 1 parent fd68df6 commit 211b5f0 Copy full SHA for 211b5f0
File tree 5 files changed +554
-5
lines changed
5 files changed +554
-5
lines changed Original file line number Diff line number Diff line change
1
+ name : ruff
2
+
3
+ on :
4
+ push :
5
+ branches : [main]
6
+ pull_request :
7
+
8
+ jobs :
9
+ format :
10
+ runs-on : ubuntu-latest
11
+
12
+ steps :
13
+ - uses : actions/checkout@v4
14
+
15
+ - name : Install uv
16
+ uses : astral-sh/setup-uv@v3
17
+ with :
18
+ enable-cache : true
19
+
20
+ - name : " Set up Python"
21
+ uses : actions/setup-python@v5
22
+ with :
23
+ python-version-file : " .python-version"
24
+
25
+ - name : Install the project
26
+ run : uv sync --frozen --all-extras --dev
27
+
28
+ - name : Run ruff format check
29
+ run : uv run --frozen ruff check .
Original file line number Diff line number Diff line change
1
+ name : typecheck
2
+
3
+ on :
4
+ push :
5
+ branches : [main]
6
+ pull_request :
7
+
8
+ jobs :
9
+ typecheck :
10
+ runs-on : ubuntu-latest
11
+
12
+ steps :
13
+ - uses : actions/checkout@v4
14
+
15
+ - name : Install uv
16
+ uses : astral-sh/setup-uv@v3
17
+ with :
18
+ enable-cache : true
19
+
20
+ - name : " Set up Python"
21
+ uses : actions/setup-python@v5
22
+ with :
23
+ python-version-file : " .python-version"
24
+
25
+ - name : Install the project
26
+ run : uv sync --frozen --all-extras --dev
27
+
28
+ - name : Run pyright
29
+ run : uv run --frozen pyright
Original file line number Diff line number Diff line change @@ -11,10 +11,19 @@ jobs:
11
11
12
12
steps :
13
13
- uses : actions/checkout@v4
14
- - uses : actions/setup-python@v5
14
+
15
+ - name : Install uv
16
+ uses : astral-sh/setup-uv@v3
17
+ with :
18
+ enable-cache : true
19
+
20
+ - name : " Set up Python"
21
+ uses : actions/setup-python@v5
15
22
with :
16
- python-version : " 3.10"
23
+ python-version-file : " .python-version"
24
+
25
+ - name : Install the project
26
+ run : uv sync --frozen --all-extras --dev
17
27
18
- - run : pip install .
19
- - run : pip install -U pytest trio
20
- - run : pytest
28
+ - name : Run pytest
29
+ run : uv run --frozen pytest
Original file line number Diff line number Diff line change @@ -38,5 +38,8 @@ target-version = "py38"
38
38
39
39
[tool .uv ]
40
40
dev-dependencies = [
41
+ " pyright>=1.1.384" ,
42
+ " pytest>=8.3.3" ,
43
+ " ruff>=0.6.9" ,
41
44
" trio>=0.26.2" ,
42
45
]
You can’t perform that action at this time.
0 commit comments