2727
2828jobs :
2929 test :
30+ # FIXME: We need ubutnu-20.04 until firefox and geckowebdriver is available
31+ # in ubuntu-22.04. To check if we can upgrade to ubuntu-22.04, see
32+ # https://github.com/actions/runner-images/blob/main/images/linux/Ubuntu2204-Readme.md#browsers-and-drivers
33+ #
3034 runs-on : ubuntu-20.04
3135
3236 strategy :
33- # Keep running even if one variation of the job fail
3437 fail-fast : false
3538 matrix :
36- # We run this job multiple times with different parameterization
37- # specified below, these parameters have no meaning on their own and
38- # gain meaning on how job steps use them.
39- jupyterlab_version : [2, 3]
40- python : ["3.7", "3.11"]
41- jupyter_app : [notebook, lab]
39+ jupyterlab-version : ["2", "3"]
40+ python-version : ["3.7", "3.11"]
41+ jupyter-app : [notebook, lab]
4242
4343 steps :
44- - uses : actions/checkout@v2
45-
46- - uses : actions/setup-python@v2
44+ - uses : actions/checkout@v3
45+ - uses : actions/setup-python@v4
4746 with :
48- python-version : " ${{ matrix.python }}"
47+ python-version : " ${{ matrix.python-version }}"
4948
5049 - name : Build Python package
5150 id : build-package
@@ -60,27 +59,27 @@ jobs:
6059 # Pytest options are set in tests/pytest.ini.
6160 run : |
6261 pip install --upgrade pip
63- pip install jupyter_packaging jupyterlab~=${{ matrix.jupyterlab_version }}.0
62+ pip install jupyter_packaging jupyterlab~=${{ matrix.jupyterlab-version }}.0
6463 pip install ./dist/jupyter_server_proxy-*.whl
6564 pip install pytest pytest-cov pytest-html
6665 # Ensure we don't accidentally depend on notebook
67- if [ "${{ matrix.jupyter_app }}" == "notebook" ]; then
66+ if [ "${{ matrix.jupyter-app }}" == "notebook" ]; then
6867 pip install "notebook<7"
6968 fi
7069 pip freeze
7170
7271 - name : Run tests
7372 run : |
74- JUPYTER_TOKEN=secret jupyter-${{ matrix.jupyter_app }} --config=./tests/resources/jupyter_server_config.py &
73+ JUPYTER_TOKEN=secret jupyter-${{ matrix.jupyter-app }} --config=./tests/resources/jupyter_server_config.py &
7574 sleep 5
7675 cd tests
7776 pytest
7877
7978 - name : Upload pytest and coverage reports
8079 if : always()
81- uses : actions/upload-artifact@v2
80+ uses : actions/upload-artifact@v3
8281 with :
83- name : unit-tests-${{matrix.python }}-${{ matrix.jupyter_app }}-${{matrix.jupyterlab_version }}-${{ github.run_number }}
82+ name : unit-tests-${{matrix.python }}-${{ matrix.jupyter-app }}-${{matrix.jupyterlab-version }}-${{ github.run_number }}
8483 path : |
8584 ./build/pytest
8685 ./build/coverage
9796 jupyter server extension list 2>&1 | grep -ie "jupyter_server_proxy.*enabled" -
9897
9998 - name : Install JupyterLab Extension
100- if : matrix.jupyterlab_version == '2'
99+ if : matrix.jupyterlab-version == '2'
101100 run : |
102101 cd jupyterlab-server-proxy
103102 jupyter labextension install . --no-build --debug
@@ -120,8 +119,8 @@ jobs:
120119
121120 - name : Upload acceptance test reports
122121 if : always()
123- uses : actions/upload-artifact@v2
122+ uses : actions/upload-artifact@v3
124123 with :
125- name : acceptance-tests-${{ matrix.python }}-${{ matrix.jupyter_app }}-${{ matrix.jupyterlab_version }}-${{ github.run_number }}
124+ name : acceptance-tests-${{ matrix.python }}-${{ matrix.jupyter-app }}-${{ matrix.jupyterlab-version }}-${{ github.run_number }}
126125 path : |
127126 ./build/robot
0 commit comments