Bump cross-spawn from 6.0.5 to 6.0.6 #1359
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Build releases and (on tags) publish to PyPI | |
name: Release | |
# always build releases (to make sure wheel-building works) | |
# but only publish to PyPI on tags | |
on: | |
push: | |
branches-ignore: | |
- "pre-commit-ci*" | |
tags: | |
- "*" | |
pull_request: | |
concurrency: | |
group: >- | |
${{ github.workflow }}- | |
${{ github.ref_type }}- | |
${{ github.event.pull_request.number || github.sha }} | |
cancel-in-progress: true | |
jobs: | |
build-release: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: 3.11 | |
cache: pip | |
- name: install build package | |
run: | | |
pip install --upgrade pip | |
pip install build | |
pip freeze | |
- name: build release | |
run: | | |
python -m build --sdist --wheel . | |
ls -l dist | |
- name: verify wheel | |
run: | | |
cd dist | |
pip install ./*.whl jupyterlab==4.* | |
ipcluster --help-all | |
ipcontroller --help-all | |
ipengine --help-all | |
jupyter labextension list 2>&1 | grep ipyparallel | |
jupyter server extension list 2>&1 | grep ipyparallel | |
# ref: https://github.com/actions/upload-artifact#readme | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: ipyparallel-${{ github.sha }} | |
path: "dist/*" | |
if-no-files-found: error | |
upload-pypi: | |
permissions: | |
id-token: write | |
environment: release | |
runs-on: ubuntu-22.04 | |
if: startsWith(github.ref, 'refs/tags/') | |
needs: | |
- build-release | |
steps: | |
- uses: actions/download-artifact@v4 | |
with: | |
path: dist | |
merge-multiple: true | |
- name: Publish wheels to PyPI | |
uses: pypa/gh-action-pypi-publish@release/v1 |