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 : actions/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 :
3430 with :
3531 fetch-depths : 0
3632 - uses : actions/setup-python@v4
33+ - uses : actions/setup-uv@v4
3734 - name : Install Ruff
38- run : pip install ruff
35+ run : uv tool install ruff
3936 - name : Check format
4037 run : ruff format --check
4138 - name : Check lints
4643 needs : build
4744 strategy :
4845 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
5148
5249 steps :
5350 - uses : actions/checkout@v3
5855 dotnet-version : ' 6.0.x'
5956
6057 - name : Set up Python ${{ matrix.python }}
61- uses : actions/setup-python @v4
58+ uses : actions/setup-uv @v4
6259 with :
6360 python-version : ${{ matrix.python }}
6461
7673
7774 - name : Install dependencies
7875 run : |
79- python -m pip install --upgrade pip
80- pip install pytest
76+ uv venv
77+ uv pip install pytest
8178
8279 - name : Download wheel
8380 uses : actions/download-artifact@v3
@@ -88,11 +85,11 @@ jobs:
8885 - name : Install wheel
8986 shell : bash
9087 run : |
91- pip install dist/*.whl
88+ uv pip install dist/*.whl
9289
9390 - name : Test with pytest
9491 run : |
95- pytest
92+ uv run pytest
9693
9794 deploy :
9895 runs-on : ubuntu-latest
0 commit comments