mirror of
https://github.com/jupyter/notebook.git
synced 2025-03-01 12:56:54 +08:00
Add CI
This commit is contained in:
parent
b3eea06ef5
commit
19452608e2
43
.github/workflows/build.yml
vendored
Normal file
43
.github/workflows/build.yml
vendored
Normal file
@ -0,0 +1,43 @@
|
||||
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
|
@ -2,4 +2,5 @@ node_modules
|
||||
**/node_modules
|
||||
**/lib
|
||||
**/package.json
|
||||
**/static
|
||||
**/static
|
||||
build
|
||||
|
@ -1,5 +1,7 @@
|
||||
# jupyterlab-classic
|
||||
|
||||

|
||||
|
||||
The next gen old-school Notebook UI.
|
||||
|
||||

|
||||
|
@ -1,13 +1,13 @@
|
||||
// Copyright (c) Jupyter Development Team.
|
||||
// Distributed under the terms of the Modified BSD License.
|
||||
|
||||
import { Shell } from '@jupyterlab-classic/application';
|
||||
import { ClassicShell } from '@jupyterlab-classic/application';
|
||||
|
||||
describe('Shell', () => {
|
||||
describe('#constructor()', () => {
|
||||
it('should create a LabShell instance', () => {
|
||||
const shell = new Shell();
|
||||
expect(shell).toBeInstanceOf(Shell);
|
||||
const shell = new ClassicShell();
|
||||
expect(shell).toBeInstanceOf(ClassicShell);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
@ -34,13 +34,11 @@
|
||||
"build:labextension:dev": "jupyter labextension build --development True .",
|
||||
"build:lib": "tsc",
|
||||
"build:prod": "jlpm run build:lib && jlpm run build:labextension",
|
||||
"build:test": "tsc --build tsconfig.test.json",
|
||||
"clean": "jlpm run clean:lib",
|
||||
"clean:all": "jlpm run clean:lib && jlpm run clean:labextension",
|
||||
"clean:labextension": "rimraf ../../jupyterlab_classic/labextension",
|
||||
"clean:lib": "rimraf lib tsconfig.tsbuildinfo",
|
||||
"prepare": "jlpm run clean && jlpm run build:prod",
|
||||
"test": "jest",
|
||||
"watch": "run-p watch:src watch:labextension",
|
||||
"watch:labextension": "jupyter labextension watch .",
|
||||
"watch:src": "tsc -w"
|
||||
|
Loading…
Reference in New Issue
Block a user