mirror of
https://github.com/jupyter/notebook.git
synced 2024-12-15 04:00:34 +08:00
44 lines
1.0 KiB
YAML
44 lines
1.0 KiB
YAML
name: Build
|
|
|
|
on:
|
|
push:
|
|
branches: [ main ]
|
|
pull_request:
|
|
branches: '*'
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v2
|
|
- name: Install node
|
|
uses: actions/setup-node@v1
|
|
with:
|
|
node-version: '14.x'
|
|
- name: Install Python
|
|
uses: actions/setup-python@v2
|
|
with:
|
|
python-version: '3.9'
|
|
architecture: 'x64'
|
|
- name: Install dependencies
|
|
run: |
|
|
python -m pip install --upgrade pip
|
|
python -m pip install jupyter_packaging
|
|
- name: Install the package
|
|
run: |
|
|
python -m pip install .
|
|
jupyter labextension list 2>&1 | grep -ie "@jupyterlab-classic/lab-extension.*enabled.*ok" -
|
|
jupyter server extension list 2>&1 | grep -ie "jupyterlab_classic.*enabled" -
|
|
python -m jupyterlab.browser_check
|
|
- name: Lint
|
|
run: |
|
|
jlpm
|
|
jlpm run eslint:check
|
|
jlpm run prettier:check
|
|
|
|
- name: Test
|
|
run: |
|
|
jlpm run build:test
|
|
jlpm run test
|