File tree Expand file tree Collapse file tree 3 files changed +15
-11
lines changed
Expand file tree Collapse file tree 3 files changed +15
-11
lines changed Original file line number Diff line number Diff line change @@ -11,15 +11,17 @@ jobs:
1111 - uses : actions/checkout@v6.0.2
1212
1313 - name : Set up Python
14- uses : actions /setup-python@v6.2.0
14+ uses : astral-sh /setup-uv@v7
1515 with :
16+ enable-cache : true
17+ activate-environment : true
1618 python-version : " 3.x"
1719
1820 - name : Install prek
19- run : pip install prek
21+ run : uv pip install prek
2022
2123 - name : Run prek auto-update
22- run : prek auto-update
24+ run : uv run prek auto-update
2325
2426 - name : Create Pull Request
2527 uses : peter-evans/create-pull-request@v8.1.0
Original file line number Diff line number Diff line change @@ -14,13 +14,13 @@ jobs:
1414 steps :
1515 - uses : actions/checkout@v6.0.2
1616 - name : Set up Python
17- uses : actions /setup-python@v6.2.0
17+ uses : astral-sh /setup-uv@v7
1818 with :
19+ enable-cache : true
20+ activate-environment : true
1921 python-version : " 3.x"
2022 - name : Install dependencies
21- run : |
22- python -m pip install --upgrade pip
23- pip install build twine
23+ run : uv pip install twine
2424 - name : Set package version
2525 run : |
2626 version="${{ github.event.release.tag_name }}"
3030 TWINE_USERNAME : __token__
3131 TWINE_PASSWORD : ${{ secrets.PYPI_TOKEN }}
3232 run : |
33- python -m build
33+ uv build
3434 twine upload dist/*
Original file line number Diff line number Diff line change @@ -24,14 +24,16 @@ jobs:
2424 with :
2525 fetch-depth : 2
2626 - name : Set up Python ${{ matrix.python-version }}
27- uses : actions /setup-python@v6.2.0
27+ uses : astral-sh /setup-uv@v7
2828 with :
29+ enable-cache : true
30+ activate-environment : true
2931 python-version : ${{ matrix.python-version }}
3032 - name : Install dependencies
3133 run : |
32- pip install uv tox tox-gh-actions tox-uv
34+ uv pip install tox tox-gh-actions tox-uv
3335 - name : Test with tox
34- run : tox
36+ run : uv run tox
3537 - name : Upload coverage to Codecov
3638 uses : codecov/codecov-action@v5
3739 with :
You can’t perform that action at this time.
0 commit comments