diff --git a/.github/workflows/release-CI.yml b/.github/workflows/release-CI.yml index 14aabbca..717439be 100644 --- a/.github/workflows/release-CI.yml +++ b/.github/workflows/release-CI.yml @@ -4,6 +4,8 @@ on: push: tags: - v* +env: + UV_SYSTEM_PYTHON: 1 jobs: macos: runs-on: macos-12 @@ -12,7 +14,9 @@ jobs: python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] steps: - uses: actions/checkout@v3 - - uses: actions/setup-python@v4 + - name: Install uv + uses: astral-sh/setup-uv@v3 + - uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - uses: dtolnay/rust-toolchain@stable @@ -25,7 +29,7 @@ jobs: args: -i python --release --out dist - name: Install build wheel - x86_64 run: | - pip install --force-reinstall dist/robyn*.whl + uv pip install --force-reinstall dist/robyn*.whl cd ~ && python -c 'import robyn' - name: Build wheels - universal2 uses: PyO3/maturin-action@v1 @@ -33,7 +37,7 @@ jobs: args: -i python --release --universal2 --out dist - name: Install build wheel - universal2 run: | - pip install --force-reinstall dist/robyn*_universal2.whl + uv pip install --force-reinstall dist/robyn*_universal2.whl cd ~ && python -c 'import robyn' - name: Upload wheels uses: actions/upload-artifact@v3 @@ -48,7 +52,9 @@ jobs: target: [x64, x86] steps: - uses: actions/checkout@v3 - - uses: actions/setup-python@v4 + - name: Install uv + uses: astral-sh/setup-uv@v3 + - uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} architecture: ${{ matrix.target }} @@ -61,7 +67,7 @@ jobs: - name: Install build wheel shell: bash run: | - pip install --force-reinstall dist/robyn*.whl + uv pip install --force-reinstall dist/robyn*.whl cd ~ && python -c 'import robyn' - name: Upload wheels uses: actions/upload-artifact@v3 @@ -77,7 +83,9 @@ jobs: steps: - uses: actions/checkout@v3 - uses: dtolnay/rust-toolchain@stable - - uses: actions/setup-python@v4 + - name: Install uv + uses: astral-sh/setup-uv@v3 + - uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - name: Build Wheels @@ -89,7 +97,7 @@ jobs: - name: Install build wheel if: matrix.target == 'x86_64' run: | - pip install --force-reinstall dist/robyn*.whl + uv pip install --force-reinstall dist/robyn*.whl cd ~ && python -c 'import robyn' - name: Upload wheels uses: actions/upload-artifact@v3 @@ -158,7 +166,9 @@ jobs: - uses: actions/download-artifact@v3 with: name: wheels - - uses: actions/setup-python@v4 + - name: Install uv + uses: astral-sh/setup-uv@v3 + - uses: actions/setup-python@v5 with: python-version: 3.x - name: Publish to PyPi @@ -166,5 +176,5 @@ jobs: TWINE_USERNAME: __token__ TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} run: | - pip install --upgrade twine + uv pip install --upgrade twine twine upload --skip-existing *