Skip to content

update pipelines

update pipelines #15

Workflow file for this run

name: Build
on:
push:
branches-ignore:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: ${{ github.event.release.tag_name }}
- name: Install node
uses: actions/setup-node@v4
with:
node-version: '18'
cache: 'yarn'
- name: Install Python
uses: actions/setup-python@v5
with:
python-version: '3.10'
cache: 'pip' # caching pip dependencies
# architecture: 'x64'
- name: Install test dependencies
run: |
python -m pip install --upgrade pip
python -m pip install build hatch "jupyterlab>=4.0.0,<5" "hatch-nodejs-version"
- name: Lint the extension
run: |
set -eux
jlpm
jlpm run lint:check
- name: Build the extension
run: |
set -eux
python -m pip install .
jupyter labextension list
jupyter labextension list 2>&1 | grep -ie "jupyterlab-logout.*OK"
python -m jupyterlab.browser_check
- name: Build extension package
run: |
python3 -m build
- name: Upload package artifact
uses: actions/upload-artifact@v4
with:
name: hcc-topbar-buttons
path: |
dist/hcc_topbar_buttons-*-py3-none-any.whl