Skip to content

Commit 63cd3f6

Browse files
committed
test(ci): test CI a bit more
1 parent cf3523a commit 63cd3f6

File tree

1 file changed

+18
-6
lines changed

1 file changed

+18
-6
lines changed

.github/workflows/native.yml

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -338,19 +338,29 @@ jobs:
338338
cd ..
339339
340340
341-
build_sdist:
341+
build-python-sdist:
342342
name: Build source distribution
343343
runs-on: ubuntu-latest
344+
# needs: [ rust-clippy, rust-doc, rust-tests, rustfst-python-bench, rustfst-python, python-doc ]
345+
# if: startsWith(github.ref, 'refs/tags/rustfst-v')
344346
steps:
345-
- uses: actions/checkout@v4
346-
- uses: actions/upload-artifact@v4
347+
- name: Checkout
348+
uses: actions/checkout@v4
349+
350+
- name: Build source distribution
351+
run: pipx run build --sdist
352+
353+
- name: Upload source distribution as artifact
354+
uses: actions/upload-artifact@v4
347355
with:
348356
name: cibw-sdist
349357
path: dist/*.tar.gz
350358

359+
351360
publish-python-wheels:
352361
name: Publish Python Wheels to PyPI
353-
# needs: [ rust-clippy, rust-doc, rust-tests, rustfst-python-bench, rustfst-python, python-doc ]
362+
needs: [ build-python-sdist ]
363+
# needs: [ rust-clippy, rust-doc, rust-tests, rustfst-python-bench, rustfst-python, python-doc, build-python-sdist ]
354364
# if: startsWith(github.ref, 'refs/tags/rustfst-v')
355365

356366
strategy:
@@ -368,6 +378,7 @@ jobs:
368378

369379
- name: Build wheels
370380
uses: pypa/[email protected]
381+
if: false
371382
env:
372383
CIBW_SKIP: cp*-musllinux_i686
373384
CIBW_ENVIRONMENT: PATH="$HOME/.cargo/bin:$PATH"
@@ -385,6 +396,7 @@ jobs:
385396

386397
- name: Upload wheels as artifacts
387398
uses: actions/upload-artifact@v4
399+
if: false
388400
with:
389401
name: cibw-wheels-${{ matrix.os }}-${{ strategy.job-index }}
390402
path: ./wheelhouse/*.whl
@@ -394,7 +406,7 @@ jobs:
394406
with:
395407
python-version: ${{ env.PYTHON_VERSION }}
396408

397-
- name: Upload wheels to PyPI
409+
- name: Upload sdist and wheels to PyPI
398410
run: |
399411
python -m pip install twine
400-
python -m twine upload -u "__token__" -p ${{ secrets.PYPI_PASSWORD }} -r pypi --verbose wheelhouse/*
412+
# python -m twine upload -u "__token__" -p ${{ secrets.PYPI_PASSWORD }} -r pypi --verbose wheelhouse/* dist/*.tar.gz

0 commit comments

Comments
 (0)