Skip to content

Commit

Permalink
add pytest doctest flags to workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Zsailer committed Jan 18, 2022
1 parent ff1d87f commit 18f278f
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/python-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 .
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/python-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 .
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/python-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 .
Expand Down
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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/"
]
Expand Down

0 comments on commit 18f278f

Please sign in to comment.