33 push :
44 branches : ["main"]
55 pull_request :
6+
67 schedule :
78 - cron : " 0 8 * * *"
89
@@ -33,15 +34,18 @@ jobs:
3334
3435 test :
3536 runs-on : ${{ matrix.os }}
37+ timeout-minutes : 10
3638 strategy :
3739 fail-fast : false
3840 matrix :
39- os : ["ubuntu-latest", "windows-latest", "macos-latest"]
40- python-version : ["3.7", "3.8", "3.9", "3.10", "pypy-3.7"]
41- exclude :
42- - os : " windows-latest"
43- python-version : " pypy-3.7"
44- - os : " macos-latest"
41+ os : [ubuntu-latest, windows-latest, macos-latest]
42+ python-version : ["3.7", "3.10"]
43+ include :
44+ - os : windows-latest
45+ python-version : " 3.9"
46+ - os : ubuntu-latest
47+ python-version : " pypy-3.8"
48+ - os : macos-latest
4549 python-version : " 3.8"
4650 steps :
4751 - name : Checkout
@@ -51,28 +55,40 @@ jobs:
5155 - name : Install the Python dependencies
5256 run : |
5357 pip install -e ".[test]" codecov
58+ - name : Point at Jupyter Server branch with terminals removed.
59+ run : |
60+ pip install -U git+https://github.com/Zsailer/jupyter_server.git@jupyter_server_terminals
5461 - name : List installed packages
5562 run : |
5663 pip freeze
5764 pip check
5865 - name : Run the tests with Coverage
5966 if : ${{ !startsWith(matrix.python-version, 'pypy') && !startsWith(runner.os, 'Windows') }}
6067 run : |
61- pytest -vv jupyter_server_terminals --cov jupyter_server_terminals --cov-branch --cov-report term-missing:skip-covered
68+ python -m pytest -vv --cov jupyter_server_terminals --cov-branch --cov-report term-missing:skip-covered
6269 - name : Run the tests on pypy and Windows
6370 if : ${{ startsWith(matrix.python-version, 'pypy') || startsWith(runner.os, 'Windows') }}
6471 run : |
65- pytest -vv jupyter_server_terminals
72+ python -m pytest -vv
6673 - name : Coverage
6774 if : ${{ !startsWith(matrix.python-version, 'pypy') && !startsWith(runner.os, 'Windows') }}
6875 run : |
6976 codecov
70- - name : Test full install
71- if : ${{ !startsWith(matrix.python-version, 'pypy') && !startsWith(runner.os, 'Windows') }}
72- run : |
73- python -m venv test_install
74- ./test_install/bin/python -m pip install -U pip
75- ./test_install/bin/python -m pip install ".[test]"
76- pushd test_install
77- ./bin/pytest --pyargs jupyter_server_terminals
78- popd
77+
78+ make_sdist :
79+ name : Make SDist
80+ runs-on : ubuntu-latest
81+ timeout-minutes : 10
82+ steps :
83+ - uses : actions/checkout@v2
84+ - uses : jupyterlab/maintainer-tools/.github/actions/base-setup@v1
85+ - uses : jupyterlab/maintainer-tools/.github/actions/make-sdist@v1
86+
87+ # test_sdist:
88+ # runs-on: ubuntu-latest
89+ # needs: [make_sdist]
90+ # name: Install from SDist and Test
91+ # timeout-minutes: 15
92+ # steps:
93+ # - uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1
94+ # - uses: jupyterlab/maintainer-tools/.github/actions/test-sdist@v1
0 commit comments