Skip to content

Commit 22fe46f

Browse files
authored
Merge pull request #6304 from blink1073/update-ci
Clean up CI
2 parents 4959617 + e88a991 commit 22fe46f

18 files changed

+69
-2224
lines changed

.github/workflows/build.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,17 @@ name: Build
22

33
on:
44
push:
5-
branches:
6-
- '*'
5+
branches: ['main']
76
pull_request:
8-
branches:
9-
- '*'
107

118
permissions:
129
contents:
1310
write
1411

12+
concurrency:
13+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
14+
cancel-in-progress: true
15+
1516
env:
1617
PIP_DISABLE_PIP_VERSION_CHECK: 1
1718

.github/workflows/buildutils.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,17 @@ name: Build Utilities
22

33
on:
44
push:
5-
branches: '*'
5+
branches: ['main']
66
pull_request:
7-
branches: '*'
87

98
defaults:
109
run:
1110
shell: bash -l {0}
1211

12+
concurrency:
13+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
14+
cancel-in-progress: true
15+
1316
jobs:
1417
versioning:
1518
runs-on: ubuntu-latest

.github/workflows/check-release.yml

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,38 @@
11
name: Check Release
22
on:
33
push:
4-
branches:
5-
- "*"
4+
branches: ["main"]
65
pull_request:
7-
branches:
8-
- "*"
96

107
permissions:
118
contents:
129
write
1310

11+
concurrency:
12+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
13+
cancel-in-progress: true
14+
1415
jobs:
1516
check_release:
1617
runs-on: ubuntu-latest
18+
strategy:
19+
matrix:
20+
group: [check_release, link_check]
21+
fail-fast: false
1722
steps:
1823
- name: Checkout
1924
uses: actions/checkout@v2
20-
2125
- name: Base Setup
2226
uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1
23-
24-
- name: Upgrade packaging dependencies
25-
run: |
26-
pip install --upgrade jupyter-packaging~=0.10 --user
27-
2827
- name: Install Dependencies
2928
run: |
30-
pip install .
31-
29+
pip install -e .
3230
- name: Check Release
31+
if: ${{ matrix.group == 'check_release' }}
3332
uses: jupyter-server/jupyter_releaser/.github/actions/check-release@v1
3433
with:
3534
token: ${{ secrets.GITHUB_TOKEN }}
3635
version_spec: next
36+
- name: Check Links
37+
if: ${{ matrix.group == 'link_check' }}
38+
uses: jupyter-server/jupyter_releaser/.github/actions/check-links@v1

.github/workflows/docs.yml

Lines changed: 12 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,23 @@
11
name: Docs Tests
22
on:
33
push:
4-
branches: '*'
4+
branches: ['main']
55
pull_request:
6-
branches: '*'
6+
7+
concurrency:
8+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
9+
cancel-in-progress: true
10+
711
jobs:
812
build:
9-
runs-on: ${{ matrix.os }}-latest
10-
strategy:
11-
fail-fast: false
12-
matrix:
13-
os: [ubuntu]
14-
python-version: [ '3.7' ]
13+
runs-on: ubuntu-latest
1514
steps:
1615
- name: Checkout
17-
uses: actions/checkout@v1
18-
- name: Install Python ${{ matrix.python-version }}
19-
uses: actions/setup-python@v1
16+
uses: actions/checkout@v2
17+
- name: Base Setup
18+
uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1
2019
with:
21-
python-version: ${{ matrix.python-version }}
22-
architecture: 'x64'
23-
- name: Upgrade packaging dependencies
24-
run: |
25-
pip install --upgrade pip setuptools wheel
26-
- name: Get pip cache dir
27-
id: pip-cache
28-
run: |
29-
echo "::set-output name=dir::$(pip cache dir)"
30-
- name: Cache pip
31-
uses: actions/cache@v1
32-
with:
33-
path: ${{ steps.pip-cache.outputs.dir }}
34-
key: ${{ runner.os }}-pip-${{ matrix.python-version }}-${{ hashFiles('setup.py') }}
35-
restore-keys: |
36-
${{ runner.os }}-pip-${{ matrix.python-version }}-
37-
${{ runner.os }}-pip-
20+
python_version: '3.7'
3821
- name: Install the Python dependencies
3922
run: |
4023
pip install -e .[test] codecov
@@ -47,6 +30,6 @@ jobs:
4730
- name: Run tests on documentation
4831
run: |
4932
EXIT_STATUS=0
50-
make -C docs/ html || EXIT_STATUS=$?
33+
make -C docs/ html SPHINXOPTS="-W" || EXIT_STATUS=$?
5134
pytest --nbval --current-env docs || EXIT_STATUS=$?
5235
exit $EXIT_STATUS

.github/workflows/ui-tests.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
name: UI Tests
22

3-
on: [push, pull_request]
3+
on:
4+
push:
5+
branches: ["main"]
6+
pull_request:
7+
8+
concurrency:
9+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
10+
cancel-in-progress: true
411

512
jobs:
613
build:
@@ -97,4 +104,4 @@ jobs:
97104
uses: actions/upload-artifact@v2
98105
with:
99106
name: notebook-${{ matrix.browser }}-updated-snapshots
100-
path: ui-tests/test
107+
path: ui-tests/test

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,8 @@ notebook/static/*
117117
!notebook/static/favicons
118118
notebook/labextension
119119
notebook/schemas
120+
docs/source/changelog.md
121+
docs/source/contributing.md
120122

121123
# playwright
122124
ui-tests/test-results

CHANGELOG.md

Lines changed: 3 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ Use `pip install pip --upgrade` to upgrade pip. Check pip version with
151151
- Add missing file to manifest [#6122](https://github.com/jupyter/notebook/pull/6122) ([@afshin](https://github.com/afshin))
152152
- Fix issue #3218 [#6108](https://github.com/jupyter/notebook/pull/6108) ([@Nazeeh21](https://github.com/Nazeeh21))
153153
- Fix version of jupyter-packaging in pyproject.toml [#6101](https://github.com/jupyter/notebook/pull/6101) ([@frenzymadness](https://github.com/frenzymadness))
154-
- "#element".tooltip is not a function on home page fixed. [#6070](https://github.com/jupyter/notebook/pull/6070) ([@ilayh123](https://github.com/ilayh123))
154+
- "#element".tooltip is not a function on home page fixed. [#6070](https://github.com/jupyter/notebook/pull/6070) @ilayh123
155155

156156
### Maintenance and upkeep improvements
157157

@@ -1014,7 +1014,7 @@ Thanks to the following contributors:
10141014
- Peter Parente ([parente](https://github.com/parente))
10151015
- Paul Masson ([paulmasson](https://github.com/paulmasson))
10161016
- Philipp Rudiger ([philippjfr](https://github.com/philippjfr))
1017-
- Mac Knight ([Shels1909](https://github.com/Shels1909))
1017+
- Mac Knight (Shels1909)
10181018
- Hisham Elsheshtawy ([Sheshtawy](https://github.com/Sheshtawy))
10191019
- Simon Biggs ([SimonBiggs](https://github.com/SimonBiggs))
10201020
- Sunil Hari (`@sunilhari`)
@@ -1260,15 +1260,11 @@ user-facing changes are described here.
12601260
Files in the dashboard may now be sorted by last modified date or name
12611261
([943](https://github.com/jupyter/notebook/pull/943)):
12621262

1263-
![image](/_static/images/dashboard-sort.png)
1264-
12651263
### Cell tags
12661264

12671265
There is a new cell toolbar for adding _cell tags_
12681266
([2048](https://github.com/jupyter/notebook/pull/2048)):
12691267

1270-
![image](/_static/images/cell-tags-toolbar.png)
1271-
12721268
Cell tags are a lightweight way to customise the behaviour of tools
12731269
working with notebooks; we're working on building support for them into
12741270
tools like [nbconvert](https://nbconvert.readthedocs.io/en/latest/) and
@@ -1283,21 +1279,11 @@ future releases.
12831279
The default styling for tables in the notebook has been updated
12841280
([1776](https://github.com/jupyter/notebook/pull/1776)).
12851281

1286-
Before:
1287-
1288-
![image](/_static/images/table-style-before.png)
1289-
1290-
After:
1291-
1292-
![image](/_static/images/table-style-after.png)
1293-
12941282
### Customise keyboard shortcuts
12951283

12961284
You can now edit keyboard shortcuts for _Command Mode_ within the UI
12971285
([1347](https://github.com/jupyter/notebook/pull/1347)):
12981286

1299-
![image](/_static/images/shortcut-editor.png)
1300-
13011287
See the `Help > Edit Keyboard Shortcuts` menu item and follow the
13021288
instructions.
13031289

@@ -1333,8 +1319,7 @@ instructions.
13331319
- Load server extensions with ConfigManager so that merge happens
13341320
recursively, unlike normal config values, to make it load more
13351321
consistently with frontend extensions([2108](https://github.com/jupyter/notebook/pull/2108)).
1336-
- The notebook server now supports the [bundler
1337-
API](https://jupyter-notebook.readthedocs.io/en/latest/extending/bundler_extensions.html)
1322+
- The notebook server now supports the bundler API
13381323
from the [jupyter_cms incubator
13391324
project](https://github.com/jupyter-incubator/contentmanagement) ([1579](https://github.com/jupyter/notebook/pull/1579)).
13401325
- The notebook server now provides information about kernel activity
@@ -1546,9 +1531,6 @@ UI changes:
15461531
find the new location. (Click here to see a
15471532
[screencast](https://cloud.githubusercontent.com/assets/335567/10711889/59665a5a-7a3e-11e5-970f-86b89592880c.gif)
15481533
)
1549-
1550-
> ![image](/_static/images/cell-toolbar-41.png)
1551-
15521534
- Added _Restart & Run All_ to the _Kernel_ menu. Users can also bind
15531535
it to a keyboard shortcut on action
15541536
`restart-kernel-and-run-all-cells`.
@@ -1558,19 +1540,13 @@ UI changes:
15581540
such as cut/copy/paste, execute, and cell type conversions apply to
15591541
all selected cells.
15601542

1561-
![image](/_static/images/multi-select-41.png)
1562-
15631543
- Added a command palette for executing Jupyter actions by name. Users
15641544
press `Cmd/Ctrl-Shift-P` or click the new command palette icon on
15651545
the toolbar.
15661546

1567-
![image](/_static/images/command-palette-41.png)
1568-
15691547
- Added a _Find and Replace_ dialog to the _Edit_ menu. Users can also
15701548
press `F` in command mode to show the dialog.
15711549

1572-
![image](/_static/images/find-replace-41.png)
1573-
15741550
Other improvements:
15751551

15761552
- Custom KernelManager methods can be Tornado coroutines, allowing

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ jlpm run build:test
7575
jlpm run test
7676
```
7777

78-
There are also end to end tests to cover higher level user interactions, located in the [`ui-tests`](./ui-tests) folder. To run these tests:
78+
There are also end to end tests to cover higher level user interactions, located in the `ui-tests` folder. To run these tests:
7979

8080
```bash
8181
cd ui-tests

0 commit comments

Comments
 (0)