1
- name : Jupyter Server Tests [Linux]
1
+ name : Jupyter Server Tests
2
2
on :
3
3
push :
4
4
branches : ["main"]
37
37
strategy :
38
38
fail-fast : false
39
39
matrix :
40
- os : [ubuntu-latest]
41
- python-version : ["3.7", "3.8", "3.9", "3.10", "pypy-3.7"]
40
+ os : [ubuntu-latest, windows-latest, macos-latest]
41
+ python-version : ["3.7", "3.10"]
42
+ include :
43
+ - os : windows-latest
44
+ python-version : " 3.9"
45
+ - os : ubuntu-latest
46
+ python-version : " pypy-3.7"
47
+ - os : macos-latest
48
+ python-version : " 3.8"
42
49
steps :
43
50
- name : Checkout
44
51
uses : actions/checkout@v2
@@ -47,35 +54,41 @@ jobs:
47
54
- name : Install the Python dependencies
48
55
run : |
49
56
pip install -e ".[test]" codecov
50
- - name : List installed packages
51
- run : |
52
- pip freeze
53
- pip check
54
57
- name : Run the tests
55
- if : ${{ matrix.python-version != 'pypy-3.7' }}
58
+ if : ${{ !startsWith( matrix.python-version, 'pypy') && !startsWith(matrix.os, 'windows') }}
56
59
run : |
57
- pytest -vv --cov jupyter_server --cov-branch --cov-report term-missing:skip-covered --cov-fail-under 70 || pytest -vv --cov jupyter_server --cov-branch --cov-report term-missing:skip-covered --cov-fail-under 70 --lf
58
- - name : Run the tests on pypy
59
- if : ${{ matrix.python-version == 'pypy-3.7' }}
60
+ args="-vv -raXs --cov jupyter_server --cov-branch --cov-report term-missing:skip-covered --durations 10 --color=yes --cov-fail-under 70"
61
+ python -m pytest $args || python -m pytest $args --lf
62
+ - name : Run the tests on pypy and windows
63
+ if : ${{ startsWith(matrix.python-version, 'pypy') || startsWith(matrix.os, 'windows') }}
60
64
run : |
61
- pytest -vv || pytest -vv -lf
65
+ python -m pytest -vv -raXs || python -m pytest -vv -raXs --lf
66
+ - name : Coverage
67
+ run : |
68
+ codecov
69
+
70
+ test_docs_and_examples :
71
+ name : Test Docs and Examples
72
+ timeout-minutes : 10
73
+ runs-on : ubuntu-latest
74
+ steps :
75
+ - uses : actions/checkout@v2
76
+ - name : Base Setup
77
+ uses : jupyterlab/maintainer-tools/.github/actions/base-setup@v1
62
78
- name : Install the Python dependencies for the examples
63
79
run : |
80
+ pip install -e ".[test]"
64
81
cd examples/simple && pip install -e .
65
82
- name : Run the tests for the examples
66
83
run : |
67
- pytest examples/simple
68
- - name : Coverage
69
- if : ${{ matrix.python-version != 'pypy-3.7' }}
70
- run : |
71
- codecov
84
+ python -m pytest examples/simple
72
85
- name : Test the docs
73
86
run : |
74
87
cd docs
75
88
pip install -r doc-requirements.txt
76
89
make html SPHINXOPTS="-W"
77
90
78
- test_miniumum_verisons :
91
+ test_miniumum_versions :
79
92
name : Test Minimum Versions
80
93
timeout-minutes : 20
81
94
runs-on : ubuntu-latest
88
101
- name : Install miniumum versions
89
102
uses : jupyterlab/maintainer-tools/.github/actions/install-minimums@v1
90
103
- name : Run the unit tests
91
- run : pytest -vv|| pytest -vv --lf
104
+ run : |
105
+ args="-vv -raXs --durations 10 --color=yes"
106
+ pytest $args || pytest $args --lf
92
107
93
108
test_prereleases :
94
109
name : Test Prereleases
@@ -108,7 +123,8 @@ jobs:
108
123
pip check
109
124
- name : Run the tests
110
125
run : |
111
- pytest -vv || pytest -vv --lf
126
+ args="-vv -raXs --durations 10 --color=yes"
127
+ pytest $args || pytest $args --lf
112
128
113
129
make_sdist :
114
130
name : Make SDist
@@ -142,11 +158,11 @@ jobs:
142
158
set -ex
143
159
cd sdist
144
160
mkdir test
145
- tar --strip-components=1 -zxvf jupyter_server* -C ./test
161
+ tar --strip-components=1 -zxvf *.tar.gz -C ./test
146
162
cd test
147
163
pip install .[test]
148
- pip install pytest-github-actions-annotate-failures
149
164
- name : Run Test
150
165
run : |
151
166
cd sdist/test
152
- pytest -vv || pytest -vv --lf
167
+ args="-vv -raXs --durations 10 --color=yes"
168
+ pytest $args || pytest $args --lf
0 commit comments