@@ -15,24 +15,29 @@ jobs:
15
15
- name : Checkout
16
16
uses : actions/checkout@v2
17
17
18
- - name : Set up Python 3.8
19
- uses : actions/setup-python@v2
18
+ - name : Base Setup
19
+ uses : jupyterlab/maintainer-tools/.github/actions/base-setup@v1
20
+
21
+ - name : Test jupyterlab_server
22
+ uses : jupyterlab/maintainer-tools/.github/actions/downstream-test@v1
20
23
with :
21
- python-version : 3.8
24
+ package_name : jupyterlab_server
22
25
23
- - name : Install dependencies
24
- run : |
25
- pip install --upgrade pip
26
- pip install "."
27
- pip install --pre --upgrade jupyterlab_server[test] jupyterlab[test] nbclassic[test]
28
- pip freeze
29
- - name : Run tests
30
- working-directory : ../
26
+ - name : Test jupyterlab
27
+ uses : jupyterlab/maintainer-tools/.github/actions/downstream-test@v1
28
+ with :
29
+ package_name : jupyterlab
30
+ test_command : " python -m jupyterlab.browser_check --no-browser-test"
31
+
32
+ - name : Test nbclassic
33
+ uses : jupyterlab/maintainer-tools/.github/actions/downstream-test@v1
34
+ with :
35
+ package_name : nbclassic
36
+
37
+ - name : Test run nbclassic
31
38
run : |
32
- # NOTE: tests won't pass from inside the working copy because of
33
- # conftest.py:pytest_plugins (must be at the top level)
34
- pytest --pyargs jupyterlab_server
35
- python -m jupyterlab.browser_check --no-browser-test
39
+ pip install nbclassic
40
+ pip install --force-reinstall "."
36
41
37
42
# Make sure we can start and kill the nbclassic server
38
43
jupyter nbclassic --no-browser &
42
47
sleep 5
43
48
kill $TASK_PID
44
49
wait $TASK_PID
45
- - name : Upload coverage to Codecov
46
- uses : codecov/codecov-action@v1
0 commit comments