Skip to content

Commit e575e68

Browse files
committed
server: init 1.8.1
1 parent 54313eb commit e575e68

File tree

301 files changed

+38115
-1
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

301 files changed

+38115
-1
lines changed

.babelrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"presets": ["es2015"]
3+
}

.eslintignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
*.min.js
2+
*components*
3+
*node_modules*
4+
*built*
5+
*build*

.eslintrc.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"parserOptions": {
3+
"ecmaVersion": 6,
4+
"sourceType": "module"
5+
},
6+
"rules": {
7+
"semi": 1,
8+
"no-cond-assign": 2,
9+
"no-debugger": 2,
10+
"comma-dangle": 0,
11+
"no-unreachable": 2
12+
}
13+
}

.flake8

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
[flake8]
2+
ignore = E501, W503, E402
3+
builtins = c, get_config
4+
exclude =
5+
.cache,
6+
.github,
7+
docs,
8+
setup.py
9+
enable-extensions = G
10+
extend-ignore =
11+
G001, G002, G004, G200, G201, G202,
12+
# black adds spaces around ':'
13+
E203,
14+
per-file-ignores =
15+
# B011: Do not call assert False since python -O removes these calls
16+
# F841 local variable 'foo' is assigned to but never used
17+
tests/*: B011, F841

.git-blame-ignore-revs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Initial pre-commit reformat
2+
42fe3bb4188a1fbd1810674776e7855cd529b8fc

.gitconfig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[blame]
2+
ignoreRevsFile = .git-blame-ignore-revs

.github/workflows/check-release.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Check Release
2+
on:
3+
push:
4+
branches: ["main"]
5+
pull_request:
6+
branches: ["*"]
7+
8+
jobs:
9+
check_release:
10+
runs-on: ubuntu-latest
11+
strategy:
12+
matrix:
13+
group: [check_release, link_check]
14+
fail-fast: false
15+
steps:
16+
- name: Checkout
17+
uses: actions/checkout@v2
18+
- name: Base Setup
19+
uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1
20+
- name: Install Dependencies
21+
run: |
22+
pip install -e .
23+
- name: Check Release
24+
if: ${{ matrix.group == 'check_release' }}
25+
uses: jupyter-server/jupyter_releaser/.github/actions/check-release@v1
26+
with:
27+
version_spec: 100.100.100
28+
token: ${{ secrets.GITHUB_TOKEN }}
29+
- name: Run Link Check
30+
if: ${{ matrix.group == 'link_check' }}
31+
uses: jupyter-server/jupyter_releaser/.github/actions/check-links@v1

.github/workflows/downstream.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: Test downstream projects
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
jobs:
8+
tests:
9+
runs-on: ubuntu-latest
10+
timeout-minutes: 20
11+
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v2
15+
16+
- name: Base Setup
17+
uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1
18+
19+
- name: Test nbclassic
20+
uses: jupyterlab/maintainer-tools/.github/actions/downstream-test@v1
21+
with:
22+
package_name: nbclassic
23+
24+
- name: Test jupyterlab_server
25+
uses: jupyterlab/maintainer-tools/.github/actions/downstream-test@v1
26+
with:
27+
package_name: jupyterlab_server
28+
29+
- name: Test jupyterlab
30+
uses: jupyterlab/maintainer-tools/.github/actions/downstream-test@v1
31+
with:
32+
package_name: jupyterlab
33+
test_command: "python -m jupyterlab.browser_check --no-browser-test"
34+
35+
- name: Test run nbclassic
36+
run: |
37+
pip install nbclassic
38+
pip install --force-reinstall "."
39+
40+
# Make sure we can start and kill the nbclassic server
41+
jupyter nbclassic --no-browser &
42+
TASK_PID=$!
43+
# Make sure the task is running
44+
ps -p $TASK_PID || exit 1
45+
sleep 5
46+
kill $TASK_PID
47+
wait $TASK_PID

.github/workflows/enforce-label.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: Enforce PR label
2+
3+
on:
4+
pull_request:
5+
types: [labeled, unlabeled, opened, edited, synchronize]
6+
jobs:
7+
enforce-label:
8+
runs-on: ubuntu-latest
9+
permissions:
10+
pull-requests: write
11+
steps:
12+
- name: enforce-triage-label
13+
uses: jupyterlab/maintainer-tools/.github/actions/enforce-label@v1
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Jupyter Server Integration Tests [Linux]
2+
on:
3+
push:
4+
branches: ["main"]
5+
pull_request:
6+
branches: ["*"]
7+
jobs:
8+
build:
9+
runs-on: ${{ matrix.os }}
10+
strategy:
11+
fail-fast: false
12+
matrix:
13+
os: [ubuntu-latest]
14+
python-version: ["3.7", "3.8", "3.9", "3.10", "pypy-3.7"]
15+
steps:
16+
- name: Checkout
17+
uses: actions/checkout@v2
18+
- name: Base Setup
19+
uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1
20+
- name: Install the Python dependencies
21+
run: |
22+
pip install -e ".[test]"
23+
pip install pytest-github-actions-annotate-failures
24+
- name: List installed packages
25+
run: |
26+
pip freeze
27+
pip check
28+
- name: Run the tests
29+
run: |
30+
pytest -vv --integration_tests=true tests
31+
32+
integration_check: # This job does nothing and is only used for the branch protection
33+
if: always()
34+
needs:
35+
- build
36+
runs-on: ubuntu-latest
37+
steps:
38+
- name: Decide whether the needed jobs succeeded or failed
39+
uses: re-actors/alls-green@release/v1
40+
with:
41+
jobs: ${{ toJSON(needs) }}

0 commit comments

Comments
 (0)