1313 with :
1414 fetch-depth : 0
1515 - 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 : astral-sh/setup-uv@v4
2117 - name : Build
22- run : python -m build
18+ run : uv build
2319 - name : Upload source distribution
2420 uses : actions/upload-artifact@v3
2521 with :
3329 - uses : actions/checkout@v3
3430 with :
3531 fetch-depths : 0
36- - uses : actions /setup-python @v4
32+ - uses : astral-sh /setup-uv @v4
3733 - name : Install Ruff
38- run : pip install ruff
34+ run : uv tool install ruff
3935 - name : Check format
4036 run : ruff format --check
4137 - name : Check lints
4642 needs : build
4743 strategy :
4844 matrix :
49- os : [ubuntu-latest , windows-latest, macos-latest ]
50- python : ['3.11', '3.10', '3.9', '3.8'] # pypy3
45+ os : [ubuntu-22.04 , windows-latest, macos-13 ]
46+ python : ['3.13', '3.12', '3. 11', '3.10', '3.9', '3.8'] # pypy3
5147
5248 steps :
5349 - uses : actions/checkout@v3
5854 dotnet-version : ' 6.0.x'
5955
6056 - name : Set up Python ${{ matrix.python }}
61- uses : actions /setup-python @v4
57+ uses : astral-sh /setup-uv @v4
6258 with :
6359 python-version : ${{ matrix.python }}
6460
7672
7773 - name : Install dependencies
7874 run : |
79- python -m pip install --upgrade pip
80- pip install pytest
75+ uv venv
76+ uv pip install pytest
8177
8278 - name : Download wheel
8379 uses : actions/download-artifact@v3
@@ -88,11 +84,11 @@ jobs:
8884 - name : Install wheel
8985 shell : bash
9086 run : |
91- pip install dist/*.whl
87+ uv pip install dist/*.whl
9288
9389 - name : Test with pytest
9490 run : |
95- pytest
91+ uv run pytest
9692
9793 deploy :
9894 runs-on : ubuntu-latest
0 commit comments