Add CI workflows #5
Workflow file for this run
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
name: Build | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: '*' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Base Setup | |
uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1 | |
- name: Install dependencies | |
run: python -m pip install 'jupyterlab>=3.0.0,<4' | |
- name: Install the extension | |
run: | | |
python -m pip install . | |
jupyter server extension enable --py jupyter_power_usage --sys-prefix | |
- name: Check the server and lab extensions are installed | |
run: | | |
jupyter server extension list 2>&1 | grep -ie "jupyter_power_usage.*enabled" | |
jupyter labextension list | |
jupyter labextension list 2>&1 | grep -ie "@mahendrapaipuri/jupyter-power-usage.*OK" | |
python -m jupyterlab.browser_check |