@@ -15,24 +15,29 @@ jobs:
1515 - name : Checkout
1616 uses : actions/checkout@v2
1717
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
2023 with :
21- python-version : 3.8
24+ package_name : jupyterlab_server
2225
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
3138 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 "."
3641
3742 # Make sure we can start and kill the nbclassic server
3843 jupyter nbclassic --no-browser &
4247 sleep 5
4348 kill $TASK_PID
4449 wait $TASK_PID
45- - name : Upload coverage to Codecov
46- uses : codecov/codecov-action@v1
0 commit comments