Skip to content

Commit 8b5f6c8

Browse files
committed
feat(ci): Migrating to uv
1 parent 1913fd4 commit 8b5f6c8

1 file changed

Lines changed: 8 additions & 11 deletions

File tree

.github/workflows/release.yml

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -21,25 +21,24 @@ jobs:
2121
uses: jlumbroso/free-disk-space@main
2222
- name: Check out the repo
2323
uses: actions/checkout@v4
24+
- name: Install uv
25+
uses: astral-sh/setup-uv@v5
2426
- name: Setup Python ${{ matrix.python-version }}
2527
uses: actions/setup-python@v5
2628
with:
2729
python-version: ${{ matrix.python-version }}
28-
cache: pip
2930
- name: Build Wheel
3031
run: |
3132
set -x
32-
pip install --upgrade pip
33-
pip install -U 'pdm>=2.20.0' twine torch==2.3.0 setuptools
34-
pdm build -vv
33+
uv build
3534
- name: Release to PyPI
3635
if: ${{ github.event_name == 'release' }}
3736
run: |
3837
export TWINE_USERNAME=pypi-upload
3938
export TWINE_PASSWORD=${{ secrets.TWINE_PASSWORD }}
4039
export TWINE_REPOSITORY_URL=https://nexus.meshy.ai/repository/pypi/
4140
export TWINE_NON_INTERACTIVE='true'
42-
python3 -m twine upload dist/*.whl
41+
uvx twine upload dist/*.whl
4342
4443
build_windows:
4544
name: Build and Push (Windows - Python ${{ matrix.python-version }})
@@ -50,22 +49,20 @@ jobs:
5049
steps:
5150
- name: Check out the repo
5251
uses: actions/checkout@v4
52+
- name: Install uv
53+
uses: astral-sh/setup-uv@v5
5354
- name: Setup Python ${{ matrix.python-version }}
5455
uses: actions/setup-python@v5
5556
with:
5657
python-version: ${{ matrix.python-version }}
57-
cache: pip
5858
- name: Build Wheel
5959
run: |
60-
$env:PATH="$env:APPDATA\Python\Library\Bin;$env:PATH"
61-
pip install --upgrade pip
62-
pip install -U 'pdm>=2.20.0' twine torch==2.1.2 setuptools
63-
pdm build -vv
60+
uv build
6461
- name: Release to PyPI
6562
if: ${{ github.event_name == 'release' }}
6663
run: |
6764
$env:TWINE_USERNAME="pypi-upload"
6865
$env:TWINE_PASSWORD="${{ secrets.TWINE_PASSWORD }}"
6966
$env:TWINE_REPOSITORY_URL="https://nexus.meshy.ai/repository/pypi/"
7067
$env:TWINE_NON_INTERACTIVE="true"
71-
python3 -m twine upload dist/*.whl
68+
uvx twine upload dist/*.whl

0 commit comments

Comments
 (0)