@@ -14,44 +14,40 @@ jobs:
14
14
- name : Checkout
15
15
uses : actions/checkout@v2
16
16
17
- - name : Set up Python 3.9
18
- uses : actions/setup-python@v2
17
+ - name : Base Setup
18
+ uses : jupyterlab/maintainer-tools/.github/actions/base-setup@v1
19
+
20
+ - name : Test IPykernel
21
+ uses : jupyterlab/maintainer-tools/.github/actions/downstream-test@v1
19
22
with :
20
- python-version : 3.9
23
+ package_name : ipykernel
24
+ package_spec : " pyqt5 ipykernel[test]"
25
+
26
+ - name : Test NBClient
27
+ uses : jupyterlab/maintainer-tools/.github/actions/downstream-test@v1
28
+ with :
29
+ package_name : nbclient
30
+ env_values : IPYKERNEL_CELL_NAME=\<IPY-INPUT\>
31
+
32
+ # Note: Currently fails
33
+ # - name: Test QtConsole
34
+ # uses: jupyterlab/maintainer-tools/.github/actions/downstream-test@v1
35
+ # with:
36
+ # package_name: qtconsole
21
37
22
- - name : Install dependencies
23
- run : |
24
- pip install --upgrade pip
25
- pip install pyqt5 pytest
26
- pip install ipykernel[test]
27
- pip install --pre -U --upgrade-strategy=only-if-needed ipykernel
28
- pip install qtconsole[test]
29
- pip install --pre -U --upgrade-strategy=only-if-needed qtconsole
30
- pip install nbclient[test]
31
- pip install --pre -U --upgrade-strategy=only-if-needed nbclient
32
- pip install nbconvert[test]
33
- pip install --pre -U --upgrade-strategy=only-if-needed nbconvert
34
- pip install jupyter_server[test]
35
- pip install --pre -U --upgrade-strategy=only-if-needed jupyter_server
36
- pip install . --force-reinstall
37
- pip freeze
38
- python -c 'import jupyter_client; print("jupyter_client", jupyter_client.__version__)'
39
-
40
- - name : Test ipykernel
41
- if : ${{ always() }}
42
- run : pytest --pyargs ipykernel
43
- - name : Test nbclient
44
- if : ${{ always() }}
45
- run : IPYKERNEL_CELL_NAME="<IPY-INPUT>" pytest --pyargs nbclient
46
38
- name : Test nbconvert
47
- if : ${{ always() }}
48
- run : pytest --pyargs nbconvert
49
- # qtconsole tests disabled because of a core dump
50
- # - name: Test qtconsole
51
- # if: ${{ always() }}
52
- # run: pytest --pyargs qtconsole
53
- # jupyter_server tests disabled because pip package doesn't allow for testing
54
- # see https://github.com/jupyter-server/jupyter_server/issues/563
55
- # - name: Test jupyter_server
56
- # if: ${{ always() }}
57
- # run: pytest --pyargs jupyter_server
39
+ uses : jupyterlab/maintainer-tools/.github/actions/downstream-test@v1
40
+ with :
41
+ package_name : nbconvert
42
+
43
+ - name : Test jupyter_server
44
+ uses : jupyterlab/maintainer-tools/.github/actions/downstream-test@v1
45
+ with :
46
+ package_name : jupyter_server
47
+
48
+ - name : Test jupyter_kernel_test
49
+ run : |
50
+ git clone https://github.com/jupyter/jupyter_kernel_test.git
51
+ cd jupyter_kernel_test
52
+ pip install -e ".[test]"
53
+ python test_ipykernel.py
0 commit comments