diff --git a/.github/workflows/python-linux.yml b/.github/workflows/python-linux.yml index 2f69cdaccd..d0f8520ec5 100644 --- a/.github/workflows/python-linux.yml +++ b/.github/workflows/python-linux.yml @@ -51,11 +51,11 @@ jobs: - name: Run the tests if: ${{ matrix.python-version != 'pypy-3.7' }} run: | - pytest -vv jupyter_server --cov jupyter_server --cov-branch --cov-report term-missing:skip-covered + pytest -vv jupyter_server --cov jupyter_server --cov-branch --cov-report term-missing:skip-covered --doctest-modules - name: Run the tests on pypy if: ${{ matrix.python-version == 'pypy-3.7' }} run: | - pytest -vv jupyter_server + pytest -vv jupyter_server --doctest-modules - name: Install the Python dependencies for the examples run: | cd examples/simple && pip install -e . diff --git a/.github/workflows/python-macos.yml b/.github/workflows/python-macos.yml index 14f24c4318..7831d63422 100644 --- a/.github/workflows/python-macos.yml +++ b/.github/workflows/python-macos.yml @@ -27,11 +27,11 @@ jobs: - name: Run the tests if: ${{ !startsWith( matrix.python-version, 'pypy' ) }} run: | - pytest -vv jupyter_server --cov jupyter_server --cov-branch --cov-report term-missing:skip-covered + pytest -vv jupyter_server --cov jupyter_server --cov-branch --cov-report term-missing:skip-covered --doctest-modules - name: Run the tests on pypy if: ${{ startsWith( matrix.python-version, 'pypy' ) }} run: | - pytest -vv jupyter_server + pytest -vv jupyter_server --doctest-modules - name: Install the Python dependencies for the examples run: | cd examples/simple && pip install -e . diff --git a/.github/workflows/python-windows.yml b/.github/workflows/python-windows.yml index a9e1c7c467..fad3236931 100644 --- a/.github/workflows/python-windows.yml +++ b/.github/workflows/python-windows.yml @@ -31,7 +31,7 @@ jobs: # the file descriptions opened by the asyncio IOLoop. # This leads to a nasty, flaky race condition that we haven't # been able to solve. - pytest -vv -s jupyter_server + pytest -vv -s jupyter_server --doctest-modules - name: Install the Python dependencies for the examples run: | cd examples/simple && pip install -e . diff --git a/pyproject.toml b/pyproject.toml index 12b2e02174..bd172c53cf 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -9,7 +9,6 @@ factory = "jupyter_packaging.npm_builder" ignore = ["tbump.toml", ".*", "*.yml", "package-lock.json", "bootstrap*", "conftest.py"] [tool.pytest.ini_options] -addopts = "--doctest-modules" testpaths = [ "jupyter_server/" ]