Skip to content

Commit 222e713

Browse files
authored
Use pytest-jupyter (#1099)
* use pytest-jupyter * update deps * cleanup * fix downstream tests * debug * fix min version * bump pytest-jupyter dep * bump version * reinstate pytest-cov * explicitly set cov-config * let auto detect work for coverage * restore pytest-cov
1 parent 3136aac commit 222e713

File tree

6 files changed

+26
-621
lines changed

6 files changed

+26
-621
lines changed

.github/workflows/downstream.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ jobs:
2020
uses: jupyterlab/maintainer-tools/.github/actions/downstream-test@v1
2121
with:
2222
package_name: nbclassic
23+
test_command: pip install pytest-jupyter[server] && pytest -vv -raXxs -W default --durations 10 --color=yes
2324

2425
- name: Test run nbclassic
2526
run: |
@@ -51,6 +52,7 @@ jobs:
5152
with:
5253
package_name: notebook
5354
package_download_extra_args: "--pre"
55+
test_command: pip install pytest-jupyter[server] && pytest -vv -raXxs -W default --durations 10 --color=yes
5456

5557
jupyterlab_server:
5658
runs-on: ubuntu-latest
@@ -63,10 +65,13 @@ jobs:
6365
- name: Base Setup
6466
uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1
6567

68+
- run: pip install pytest-jupyter[server]
69+
6670
- name: Test jupyterlab_server
6771
uses: jupyterlab/maintainer-tools/.github/actions/downstream-test@v1
6872
with:
6973
package_name: jupyterlab_server
74+
test_command: pip install pytest-jupyter[server] && pytest -vv -raXxs -W default --durations 10 --color=yes
7075

7176
jupyterlab:
7277
runs-on: ubuntu-latest
@@ -99,6 +104,7 @@ jobs:
99104
- name: Test jupyter_server_terminals
100105
uses: jupyterlab/maintainer-tools/.github/actions/downstream-test@v1
101106
with:
107+
test_command: pip install pytest-jupyter[server] && pytest -vv -raXxs -W default --durations 10 --color=yes
102108
package_name: jupyter_server_terminals
103109

104110
downstream_check: # This job does nothing and is only used for the branch protection

.github/workflows/python-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ jobs:
9393
dependency_type: minimum
9494
- name: Run the unit tests
9595
run: |
96-
hatch run test:nowarn || hatch run test:nowarn --lf
96+
hatch -vv run test:nowarn || hatch run test:nowarn --lf
9797
9898
test_prereleases:
9999
name: Test Prereleases

0 commit comments

Comments
 (0)