@@ -37,34 +37,20 @@ jobs:
37
37
sudo apt-get update
38
38
sudo apt-get install texlive-plain-generic inkscape texlive-xetex
39
39
sudo apt-get install xvfb x11-utils libxkbcommon-x11-0 pandoc
40
- - name : Run the tests
40
+ - name : Run the tests on posix
41
41
if : ${{ !startsWith(matrix.python-version, 'pypy') && !startsWith(matrix.os, 'windows') }}
42
- run : hatch run cov:test -W default || hatch run test:test -W default --lf
43
- - name : Run the tests on pypy and windows
44
- if : ${{ startsWith(matrix.python-version, 'pypy') || startsWith(matrix.os, 'windows') }}
45
- run : hatch run test:test -W default || hatch run test:test -W default --lf
42
+ run : hatch run cov:test --cov-fail-under 75 || hatch run test:test --lf
43
+ - name : Run the tests on pypy
44
+ if : ${{ startsWith(matrix.python-version, 'pypy') }}
45
+ run : hatch run test:test || hatch run test:test --lf
46
+ - name : Run the tests on windows
47
+ if : ${{ startsWith(matrix.python-version, 'windows') }}
48
+ run : hatch run cov:nowarn -s || hatch run cov:nowarn --lf
46
49
- name : Coverage
47
50
run : |
48
51
pip install codecov
49
52
codecov
50
53
51
- client8 :
52
- runs-on : ${{ matrix.os }}
53
- timeout-minutes : 20
54
- strategy :
55
- fail-fast : false
56
- matrix :
57
- os : [ubuntu-latest, windows-latest, macos-latest]
58
- python-version : ["3.10"]
59
- steps :
60
- - name : Checkout
61
- uses : actions/checkout@v3
62
- - name : Base Setup
63
- uses : jupyterlab/maintainer-tools/.github/actions/base-setup@v1
64
- - run : |
65
- pip install -U pre jupyter_client
66
- hatch run test:test || hatch run test:test --lf
67
-
68
54
pre-commit :
69
55
name : pre-commit
70
56
runs-on : ubuntu-latest
@@ -102,38 +88,30 @@ jobs:
102
88
runs-on : ubuntu-latest
103
89
steps :
104
90
- uses : actions/checkout@v3
105
- - name : Base Setup
106
- uses : jupyterlab/maintainer-tools/.github/actions/base-setup@v1
91
+ - uses : jupyterlab/maintainer-tools/.github/actions/base-setup@v1
107
92
with :
108
93
python_version : " 3.8"
109
- - name : Install miniumum versions
110
- uses : jupyterlab/maintainer-tools/.github/actions/install-minimums@v1
94
+ - uses : jupyterlab/maintainer-tools/.github/actions/install-minimums@v1
95
+ with :
96
+ only_create_file : 1
111
97
- name : Run the unit tests
112
98
run : |
113
- pytest -vv -W default || pytest -vv -W default --lf
99
+ export PIP_CONSTRAINT="./contraints_file.txt"
100
+ hatch run test:nowarn || hatch run test:nowarn --lf
114
101
115
102
test_prereleases :
116
103
name : Test Prereleases
117
104
runs-on : ubuntu-latest
118
105
timeout-minutes : 20
119
106
steps :
120
- - name : Checkout
121
- uses : actions/checkout@v3
122
- - name : Base Setup
123
- uses : jupyterlab/maintainer-tools/.github/actions/base-setup@v1
107
+ - uses : actions/checkout@v3
108
+ - uses : jupyterlab/maintainer-tools/.github/actions/base-setup@v1
124
109
with :
125
110
python_version : " 3.11"
126
- - name : Install the Python dependencies
127
- run : |
128
- pip install --no-deps .
129
- pip install --pre --upgrade ".[test]"
130
- - name : List installed packages
131
- run : |
132
- pip freeze
133
- pip check
134
111
- name : Run the tests
135
112
run : |
136
- pytest -vv -W default || pytest -vv -W default --lf
113
+ export PIP_PRE=1
114
+ hatch run test:nowarn || hatch run test:nowarn --lf
137
115
138
116
make_sdist :
139
117
name : Make SDist
@@ -173,7 +151,6 @@ jobs:
173
151
- test_docs
174
152
- test_minimum_versions
175
153
- test_prereleases
176
- - client8
177
154
- check_links
178
155
- test_sdist
179
156
runs-on : ubuntu-latest
0 commit comments