Skip to content

JupyterLab 4 Lumino 2 and ipywidgets 8 update #183

JupyterLab 4 Lumino 2 and ipywidgets 8 update

JupyterLab 4 Lumino 2 and ipywidgets 8 update #183

Workflow file for this run

name: Conda package (Ubuntu Lab2 and Lab3)
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
defaults:
run:
shell: bash -l {0}
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Cache Conda
uses: actions/cache@v1
with:
path: ~/.conda
key: ${{ runner.os }}-mconda-${{ hashFiles('**/configuration.yml') }}
restore-keys: |
${{ runner.os }}-conda-
- name: Install Conda environment with Micromamba
uses: mamba-org/provision-with-micromamba@main
with:
environment-name: beakerx_tabledisplay
environment-file: configuration.yml
channels: conda-forge
- name: Verify conda version
shell: bash
run: conda --version
- name: Install build dependencies
run: conda install jupyterlab=3 jupyter-packaging
- name: Build BeakerX tabledisplay
run: (cd beakerx_tabledisplay; pip install -e .)
- name: Check installation files (nbextension and lab3 extension)
run: |
test -d $CONDA_PREFIX/share/jupyter/nbextensions/beakerx_tabledisplay
test -f $CONDA_PREFIX/share/jupyter/nbextensions/beakerx_tabledisplay/extension.js
test -f $CONDA_PREFIX/share/jupyter/nbextensions/beakerx_tabledisplay/index.js
test -d $CONDA_PREFIX/share/jupyter/labextensions/@beakerx/beakerx-tabledisplay
test -f $CONDA_PREFIX/share/jupyter/labextensions/@beakerx/beakerx-tabledisplay/package.json
- name: Check nbextension and labextension (Lab3)
run: |
jupyter nbextension list 2>&1 | grep -ie "beakerx_tabledisplay/extension.*enabled" -
jupyter labextension list 2>&1 | grep -ie "@beakerx/beakerx-tabledisplay.*enabled.*ok" -
- name: Build wheel
run: |
cd beakerx_tabledisplay
python setup.py sdist bdist_wheel
cd dist
sha256sum * | tee SHA256SUMS
- name: Upload builds
uses: actions/upload-artifact@v2
with:
name: dist ${{ github.run_number }}
path: ./beakerx_tabledisplay/dist
tests:
runs-on: ubuntu-latest
needs: [build]
strategy:
fail-fast: false
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Checkout beakerx_base repo
uses: actions/checkout@v2
with:
repository: twosigma/beakerx_base
path: beakerx_base
- name: Checkout beakerx_tests repo
uses: actions/checkout@v2
with:
repository: twosigma/beakerx_tests
path: beakerx_tests
- uses: actions/download-artifact@v2
with:
name: dist ${{ github.run_number }}
path: ./dist
- name: Setup conda
uses: conda-incubator/setup-miniconda@v2
with:
activate-environment: beakerx_tabledisplay
environment-file: configuration.yml
auto-activate-base: false
channels: conda-forge
miniconda-version: "latest"
- name: Install jupyterlab2
run: conda install jupyterlab=2
- name: Install the wheel
run: |
cd dist
pip install -vv beakerx_tabledisplay*.whl
- name: Manually install labextension for lab2
run: jupyter labextension install @jupyter-widgets/jupyterlab-manager beakerx_tabledisplay/js
- name: Check installation files (nbextension and lab3 extension)
run: |
test -d $CONDA_PREFIX/share/jupyter/nbextensions/beakerx_tabledisplay
test -f $CONDA_PREFIX/share/jupyter/nbextensions/beakerx_tabledisplay/extension.js
test -f $CONDA_PREFIX/share/jupyter/nbextensions/beakerx_tabledisplay/index.js
test -d $CONDA_PREFIX/share/jupyter/labextensions/@beakerx/beakerx-tabledisplay
test -f $CONDA_PREFIX/share/jupyter/labextensions/@beakerx/beakerx-tabledisplay/package.json
- name: Check nbextension and labextension (Lab2)
run: |
jupyter nbextension list 2>&1 | grep -ie "beakerx_tabledisplay/extension.*enabled" -
jupyter labextension list 2>&1 | grep -ie "@beakerx/beakerx-tabledisplay.*enabled.*ok" -
- name: Run e2e tests (table v1)
shell: bash -l {0}
run: |
cd $GITHUB_WORKSPACE/beakerx_tests/autotests
chmod +x gradlew
pip install psutil
python ci_tests.py --app=lab --tbl=v1 --exp=yes --tst=python.Table*
- name: Archive screenshot results
uses: actions/upload-artifact@v1
if: always()
with:
name: screenshots
path: ${{ github.workspace }}/beakerx_tests/autotests/resources/img/python