9
9
10
10
jobs :
11
11
test :
12
- name : ${{ matrix.platform }} ${{ matrix.python_version }}
13
- runs-on : ${{ matrix.platform }}-latest
12
+ name : ${{ matrix.os }} ${{ matrix.python-version }}
13
+ runs-on : ${{ matrix.os }}
14
14
env :
15
15
CI : True
16
- PYTHON_VERSION : ${{ matrix.python_version }}
17
16
CODECOV_TOKEN : e025254a-fe54-4914-8890-0c26e7aa0d07
18
17
strategy :
19
18
fail-fast : false
20
19
matrix :
21
- python_version : ['3.7', '3.10', 'pypy-3.7']
22
- platform : ['ubuntu', 'macos', 'windows']
23
- exclude :
24
- - platform : windows
25
- python_version : pypy3
20
+ os : [ubuntu-latest, windows-latest, macos-latest]
21
+ python_version : ["3.7", "3.10"]
22
+ include :
23
+ - os : windows-latest
24
+ python-version : " 3.9"
25
+ - os : ubuntu-latest
26
+ python-version : " pypy-3.7"
27
+ - os : macos-latest
28
+ python-version : " 3.8"
26
29
steps :
27
30
- name : Checkout
28
31
uses : actions/checkout@v2
@@ -31,10 +34,15 @@ jobs:
31
34
- name : Install project dependencies
32
35
run : |
33
36
pip install -e ".[test]"
34
- - name : Run python tests
35
- # See `setup.cfg` for full test options
37
+ - name : Run the tests
38
+ if : ${{ !startsWith(matrix.python-version, 'pypy') && !startsWith(matrix.os, 'windows') }}
39
+ run : |
40
+ args="-vv -raXs --cov jupyterlab_server --cov-branch --cov-report term-missing:skip-covered --durations 10 --color=yes --cov-fail-under 65"
41
+ python -m pytest $args || python -m pytest $args --lf
42
+ - name : Run the tests on pypy and windows
43
+ if : ${{ startsWith(matrix.python_version, 'pypy') || startsWith(matrix.os, 'windows') }}
36
44
run : |
37
- pytest
45
+ python -m pytest -vv -raXs || python -m pytest -vv -raXs --lf
38
46
- name : Upload coverage
39
47
run : |
40
48
codecov
97
105
- name : Install miniumum versions
98
106
uses : jupyterlab/maintainer-tools/.github/actions/install-minimums@v1
99
107
- name : Run the unit tests
100
- run : pytest -vv|| pytest -vv --lf
108
+ run : python -m pytest -vv -raXs || python -m pytest -vv -raXs --lf
101
109
102
110
test_prereleases :
103
111
name : Test Prereleases
@@ -116,8 +124,7 @@ jobs:
116
124
pip freeze
117
125
pip check
118
126
- name : Run the tests
119
- run : |
120
- pytest -vv || pytest -vv --lf
127
+ run : python -m pytest -vv -raXs || python -m pytest -vv -raXs --lf
121
128
122
129
make_sdist :
123
130
name : Make SDist
@@ -154,10 +161,9 @@ jobs:
154
161
tar --strip-components=1 -zxvf *.tar.gz -C ./test
155
162
cd test
156
163
pip install .[test]
157
- pip install pytest-github-actions-annotate-failures
158
164
- name : Run Test
159
165
run : |
160
166
cd sdist/test
161
- pytest -vv || pytest -vv --lf
167
+ python -m pytest -vv -raXs || python -m pytest -vv -raXs --lf
162
168
# Ensure that the pytest plugin is importable.
163
169
python -c "from jupyterlab_server import pytest_plugin"
0 commit comments