Skip to content
This repository has been archived by the owner on Feb 16, 2023. It is now read-only.

Commit

Permalink
Add CI
Browse files Browse the repository at this point in the history
  • Loading branch information
jtpio committed Dec 7, 2020
1 parent b3eea06 commit 1945260
Show file tree
Hide file tree
Showing 5 changed files with 50 additions and 6 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -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
3 changes: 2 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@ node_modules
**/node_modules
**/lib
**/package.json
**/static
**/static
build
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# jupyterlab-classic

![Github Actions Status](https://github.com/jtpio/jupyterlab-classic/workflows/Build/badge.svg)

The next gen old-school Notebook UI.

![image](https://user-images.githubusercontent.com/591645/101378325-400fa280-38b3-11eb-81a5-4c7a1aca780e.png)
Expand Down
6 changes: 3 additions & 3 deletions packages/application/test/shell.spec.ts
Original file line number Diff line number Diff line change
@@ -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);
});
});
});
2 changes: 0 additions & 2 deletions packages/lab-extension/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 1945260

Please sign in to comment.