Skip to content

Commit

Permalink
Use pytest-jupyter (#1099)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
blink1073 authored Nov 28, 2022
1 parent 3136aac commit 222e713
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 621 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/downstream.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ jobs:
uses: jupyterlab/maintainer-tools/.github/actions/downstream-test@v1
with:
package_name: nbclassic
test_command: pip install pytest-jupyter[server] && pytest -vv -raXxs -W default --durations 10 --color=yes

- name: Test run nbclassic
run: |
Expand Down Expand Up @@ -51,6 +52,7 @@ jobs:
with:
package_name: notebook
package_download_extra_args: "--pre"
test_command: pip install pytest-jupyter[server] && pytest -vv -raXxs -W default --durations 10 --color=yes

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

- run: pip install pytest-jupyter[server]

- name: Test jupyterlab_server
uses: jupyterlab/maintainer-tools/.github/actions/downstream-test@v1
with:
package_name: jupyterlab_server
test_command: pip install pytest-jupyter[server] && pytest -vv -raXxs -W default --durations 10 --color=yes

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

downstream_check: # This job does nothing and is only used for the branch protection
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/python-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ jobs:
dependency_type: minimum
- name: Run the unit tests
run: |
hatch run test:nowarn || hatch run test:nowarn --lf
hatch -vv run test:nowarn || hatch run test:nowarn --lf
test_prereleases:
name: Test Prereleases
Expand Down
Loading

0 comments on commit 222e713

Please sign in to comment.