Skip to content

Commit

Permalink
[ci] also build with uv
Browse files Browse the repository at this point in the history
  • Loading branch information
LoicGrobol committed Sep 18, 2024
1 parent 03f296f commit 9bb16f6
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,12 @@ jobs:
uv pip install tox tox-gh-actions tox-uv
tox
build_wheels:
name: Build wheels on ${{ matrix.os }}
name: Build wheels for Python ${{ matrix.python-version }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
python-version: [env.main-python-version]
needs: test
steps:
- uses: actions/checkout@v4
Expand All @@ -83,10 +84,10 @@ jobs:
enable-cache: true
cache-dependency-glob: "**/pyproject.toml"
- name: Build wheels
run: uvx --python ${{ env.main-python-version }} --from build pyproject-build --wheel
run: uv build --python ${{ matrix.python-version }} --wheel
- uses: actions/upload-artifact@v4
with:
name: dist-wheel-${{ matrix.os }}
name: dist-wheel-py${{ matrix.python-version }}-${{ matrix.os }}
path: ./dist/*.whl
build_sdist:
name: Build source distribution
Expand All @@ -100,7 +101,7 @@ jobs:
enable-cache: true
cache-dependency-glob: "**/pyproject.toml"
- name: Build wheels
run: uvx --python ${{ env.main-python-version }} --from build pyproject-build --sdist
run: uv build --python ${{ env.main-python-version }} --sdist
- uses: actions/upload-artifact@v4
with:
name: dist-sdist
Expand Down

0 comments on commit 9bb16f6

Please sign in to comment.