Skip to content

Commit 02c523c

Browse files
committed
add pytest doctest flags to workflow
1 parent 5a62e55 commit 02c523c

File tree

4 files changed

+5
-6
lines changed

4 files changed

+5
-6
lines changed

.github/workflows/python-linux.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,11 @@ jobs:
5151
- name: Run the tests
5252
if: ${{ matrix.python-version != 'pypy-3.7' }}
5353
run: |
54-
pytest -vv jupyter_server --cov jupyter_server --cov-branch --cov-report term-missing:skip-covered
54+
pytest -vv jupyter_server --cov jupyter_server --cov-branch --cov-report term-missing:skip-covered --doctest-modules
5555
- name: Run the tests on pypy
5656
if: ${{ matrix.python-version == 'pypy-3.7' }}
5757
run: |
58-
pytest -vv jupyter_server
58+
pytest -vv jupyter_server --doctest-modules
5959
- name: Install the Python dependencies for the examples
6060
run: |
6161
cd examples/simple && pip install -e .

.github/workflows/python-macos.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@ jobs:
2727
- name: Run the tests
2828
if: ${{ !startsWith( matrix.python-version, 'pypy' ) }}
2929
run: |
30-
pytest -vv jupyter_server --cov jupyter_server --cov-branch --cov-report term-missing:skip-covered
30+
pytest -vv jupyter_server --cov jupyter_server --cov-branch --cov-report term-missing:skip-covered --doctest-modules
3131
- name: Run the tests on pypy
3232
if: ${{ startsWith( matrix.python-version, 'pypy' ) }}
3333
run: |
34-
pytest -vv jupyter_server
34+
pytest -vv jupyter_server --doctest-modules
3535
- name: Install the Python dependencies for the examples
3636
run: |
3737
cd examples/simple && pip install -e .

.github/workflows/python-windows.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
# the file descriptions opened by the asyncio IOLoop.
3232
# This leads to a nasty, flaky race condition that we haven't
3333
# been able to solve.
34-
pytest -vv -s jupyter_server
34+
pytest -vv -s jupyter_server --doctest-modules
3535
- name: Install the Python dependencies for the examples
3636
run: |
3737
cd examples/simple && pip install -e .

pyproject.toml

-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ factory = "jupyter_packaging.npm_builder"
99
ignore = ["tbump.toml", ".*", "*.yml", "package-lock.json", "bootstrap*", "conftest.py"]
1010

1111
[tool.pytest.ini_options]
12-
addopts = "--doctest-modules"
1312
testpaths = [
1413
"jupyter_server/"
1514
]

0 commit comments

Comments
 (0)