@@ -37,42 +37,23 @@ jobs:
3737 - name : Base Setup
3838 uses : jupyterlab/maintainer-tools/.github/actions/base-setup@v1
3939
40- - name : Install the Python dependencies
41- run : |
42- pip install .[test] codecov
43-
44- - name : Install matplotlib
45- if : ${{ !startsWith(matrix.os, 'macos') && !startsWith(matrix.python-version, 'pypy') }}
46- run : |
47- pip install matplotlib || echo 'failed to install matplotlib'
48-
49- - name : Install alternate event loops
50- if : ${{ !startsWith(matrix.os, 'windows') }}
51- run : |
52- pip install curio || echo 'ignoring curio install failure'
53- pip install trio || echo 'ignoring trio install failure'
54-
55- - name : List installed packages
56- run : |
57- pip uninstall pipx -y
58- pip install pipdeptree
59- pipdeptree
60- pipdeptree --reverse
61- pip freeze
62- pip check
63-
6440 - name : Run the tests
6541 timeout-minutes : 15
6642 if : ${{ !startsWith( matrix.python-version, 'pypy' ) && !startsWith(matrix.os, 'windows') }}
6743 run : |
68- hatch run cov:test || hatch run test:test --lf
44+ hatch run cov:test --cov-fail-under 50 || hatch run test:test --lf
45+
46+ - name : Run the tests on pypy
47+ timeout-minutes : 15
48+ if : ${{ startsWith( matrix.python-version, 'pypy' ) }}
49+ run : |
50+ hatch run test:nowarn || hatch run test:nowarn --lf
6951
70- - name : Run the tests on pypy and windows
52+ - name : Run the tests on Windows
7153 timeout-minutes : 15
72- if : ${{ startsWith( matrix.python-version, 'pypy' ) || startsWith(matrix.os, 'windows') }}
54+ if : ${{ startsWith(matrix.os, 'windows') }}
7355 run : |
74- pip install -e ".[test]"
75- pytest -vv || pytest -vv --lf
56+ hatch run cov:nowarn || hatch run test:nowarn --lf
7657
7758 - name : Coverage
7859 run : |
8162
8263 - name : Check Launcher
8364 run : |
65+ pip install .
8466 cd $HOME
8567 python -m ipykernel_launcher --help
8668
9173 - uses : jupyterlab/maintainer-tools/.github/actions/base-setup@v1
9274 - uses : jupyterlab/maintainer-tools/.github/actions/pre-commit@v1
9375
76+ check_release :
77+ runs-on : ubuntu-latest
78+ steps :
79+ - uses : actions/checkout@v3
80+ - uses : jupyterlab/maintainer-tools/.github/actions/base-setup@v1
81+ - uses : jupyter-server/jupyter_releaser/.github/actions/check-release@v2
82+ with :
83+ token : ${{ secrets.GITHUB_TOKEN }}
84+
9485 test_docs :
9586 runs-on : ubuntu-latest
9687 steps :
@@ -123,7 +114,7 @@ jobs:
123114
124115 - name : Run the tests
125116 timeout-minutes : 10
126- run : hatch run test:test
117+ run : pytest -W default -vv || pytest --vv -W default --lf
127118
128119 test_miniumum_versions :
129120 name : Test Minimum Versions
@@ -137,9 +128,12 @@ jobs:
137128 python_version : " 3.8"
138129 - name : Install miniumum versions
139130 uses : jupyterlab/maintainer-tools/.github/actions/install-minimums@v1
131+ with :
132+ only_create_file : 1
140133 - name : Run the unit tests
141134 run : |
142- pytest -vv -W default || pytest -vv -W default --lf
135+ export PIP_CONSTRAINT="./contraints_file.txt"
136+ hatch run test:nowarn || hatch run test:nowarn --lf
143137
144138 test_prereleases :
145139 name : Test Prereleases
@@ -150,16 +144,10 @@ jobs:
150144 uses : actions/checkout@v3
151145 - name : Base Setup
152146 uses : jupyterlab/maintainer-tools/.github/actions/base-setup@v1
153- - name : Install the Python dependencies
154- run : |
155- pip install --pre -e ".[test]"
156- - name : List installed packages
157- run : |
158- pip freeze
159- pip check
160147 - name : Run the tests
161148 run : |
162- pytest -vv -W default || pytest -vv -W default --lf
149+ export PIP_PRE=1
150+ hatch run test:nowarn || hatch run test:nowarn --lf
163151
164152 make_sdist :
165153 name : Make SDist
@@ -195,6 +183,7 @@ jobs:
195183 - test_miniumum_versions
196184 - pre_commit
197185 - test_prereleases
186+ - check_release
198187 - link_check
199188 - test_sdist
200189 runs-on : ubuntu-latest
0 commit comments