From e21769e58783d80d5d6ffe1801cc93d2cd2e0346 Mon Sep 17 00:00:00 2001 From: Reid Johnson Date: Tue, 10 Sep 2024 19:41:59 -0500 Subject: [PATCH] Fix doc tests (#89) --- .github/workflows/build.yml | 2 +- docs/getting_started/developers.rst | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 760e04b..da0723e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -47,7 +47,7 @@ jobs: - name: Test with pytest run: | - python -m pytest docs/user_guide/*rst + python -m pytest --doctest-glob="*.rst" --doctest-modules docs python -m pytest --pyargs quantile_forest --cov=quantile_forest - name: Upload coverage reports to Codecov diff --git a/docs/getting_started/developers.rst b/docs/getting_started/developers.rst index 0ff309a..0bb7a53 100755 --- a/docs/getting_started/developers.rst +++ b/docs/getting_started/developers.rst @@ -50,7 +50,7 @@ To test the code and produce a coverage report:: To test the documentation:: - $ python -m pytest docs/user_guide/*rst + $ python -m pytest --doctest-glob="*.rst" --doctest-modules docs Documentation ~~~~~~~~~~~~~