Skip to content

Commit

Permalink
Update python-package.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
K0lb3 authored Sep 23, 2024
1 parent 360eae6 commit ba2e01a
Showing 1 changed file with 17 additions and 16 deletions.
33 changes: 17 additions & 16 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,22 +20,6 @@ jobs:
- name: Test
run: pytest -vs ./tests

build_sdist:
name: Build source distribution
needs: [test]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive

- name: Build sdist
run: pipx run build --sdist

- uses: actions/upload-artifact@v4
with:
path: dist/*.tar.gz

build_wheels:
needs: [test]
strategy:
Expand Down Expand Up @@ -81,6 +65,23 @@ jobs:
overwrite: true
path: ./wheelhouse/*.whl

build_sdist:
name: Build source distribution
needs: [test, build_wheels]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive

- name: Build sdist
run: pipx run build --sdist

- uses: actions/upload-artifact@v4
with:
overwrite: true
path: dist/*.tar.gz

upload_pypi:
name: Publish to PyPI
needs: [build_wheels, build_sdist]
Expand Down

0 comments on commit ba2e01a

Please sign in to comment.