Skip to content

Merge pull request #839 from ipython/dependabot/npm_and_yarn/lab-21a7… #1113

Merge pull request #839 from ipython/dependabot/npm_and_yarn/lab-21a7…

Merge pull request #839 from ipython/dependabot/npm_and_yarn/lab-21a7… #1113

Workflow file for this run

# 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-20.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: 3.8
- 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==3.*
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@v3
with:
name: ipyparallel-${{ github.sha }}
path: "dist/*"
if-no-files-found: error
- name: Publish to PyPI
if: startsWith(github.ref, 'refs/tags/')
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
pip install twine
twine upload --skip-existing dist/*