13
13
with :
14
14
fetch-depth : 0
15
15
- uses : actions/setup-dotnet@v1
16
- - uses : actions/setup-python@v4
17
- - name : Install dependencies
18
- run : |
19
- python -m pip install --upgrade pip
20
- pip install build
16
+ - uses : actions/setup-uv@v4
21
17
- name : Build
22
- run : python -m build
18
+ run : uv build
23
19
- name : Upload source distribution
24
20
uses : actions/upload-artifact@v3
25
21
with :
34
30
with :
35
31
fetch-depths : 0
36
32
- uses : actions/setup-python@v4
33
+ - uses : actions/setup-uv@v4
37
34
- name : Install Ruff
38
- run : pip install ruff
35
+ run : uv tool install ruff
39
36
- name : Check format
40
37
run : ruff format --check
41
38
- name : Check lints
46
43
needs : build
47
44
strategy :
48
45
matrix :
49
- os : [ubuntu-latest , windows-latest, macos-latest]
50
- python : ['3.11', '3.10', '3.9', '3.8'] # pypy3
46
+ os : [ubuntu-22.04 , windows-latest, macos-latest]
47
+ python : ['3.13', '3.12', '3. 11', '3.10', '3.9', '3.8'] # pypy3
51
48
52
49
steps :
53
50
- uses : actions/checkout@v3
58
55
dotnet-version : ' 6.0.x'
59
56
60
57
- name : Set up Python ${{ matrix.python }}
61
- uses : actions/setup-python @v4
58
+ uses : actions/setup-uv @v4
62
59
with :
63
60
python-version : ${{ matrix.python }}
64
61
76
73
77
74
- name : Install dependencies
78
75
run : |
79
- python -m pip install --upgrade pip
80
- pip install pytest
76
+ uv venv
77
+ uv pip install pytest
81
78
82
79
- name : Download wheel
83
80
uses : actions/download-artifact@v3
@@ -88,11 +85,11 @@ jobs:
88
85
- name : Install wheel
89
86
shell : bash
90
87
run : |
91
- pip install dist/*.whl
88
+ uv pip install dist/*.whl
92
89
93
90
- name : Test with pytest
94
91
run : |
95
- pytest
92
+ uv run pytest
96
93
97
94
deploy :
98
95
runs-on : ubuntu-latest
0 commit comments