From 010c64992e9fcb69294945c914715521f8858902 Mon Sep 17 00:00:00 2001 From: ricardoV94 Date: Wed, 13 Nov 2024 14:42:31 +0100 Subject: [PATCH] Run doctest in docs --- .github/workflows/test.yml | 2 +- pyproject.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 9677615206..5ca4290ea8 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -107,7 +107,7 @@ jobs: python-version: "3.13" include: - os: "ubuntu-latest" - part: "--doctest-modules pytensor --ignore=pytensor/misc/check_duplicate_key.py --ignore=pytensor/link" + part: "--doctest-modules pytensor doc --ignore=pytensor/misc/check_duplicate_key.py --ignore=pytensor/link" python-version: "3.12" numpy-version: ">=2.0" fast-compile: 0 diff --git a/pyproject.toml b/pyproject.toml index f37b3de84b..8d02d2661d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -119,7 +119,7 @@ tag_prefix = "rel-" [tool.pytest.ini_options] addopts = "--durations=50 --doctest-modules --ignore=pytensor/link --ignore=pytensor/misc/check_duplicate_key.py" -testpaths = ["pytensor/", "tests/"] +testpaths = ["pytensor/", "tests/", "doc/"] xfail_strict = true [tool.ruff]