Skip to content

Commit c270416

Browse files
committed
Run doctest in docs
1 parent 3523bfa commit c270416

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/test.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ jobs:
7979
install-jax: [0]
8080
install-torch: [0]
8181
part:
82-
- "--doctest-modules pytensor --ignore=pytensor/misc/check_duplicate_key.py --ignore=pytensor/link"
82+
- "--doctest-modules pytensor doc --ignore=pytensor/misc/check_duplicate_key.py --ignore=pytensor/link"
8383
- "tests --ignore=tests/tensor --ignore=tests/scan --ignore=tests/sparse"
8484
- "tests/scan"
8585
- "tests/sparse"
@@ -98,9 +98,9 @@ jobs:
9898
part: "tests/tensor/test_math.py"
9999
- fast-compile: 1
100100
float32: 1
101-
- part: "--doctest-modules pytensor --ignore=pytensor/misc/check_duplicate_key.py --ignore=pytensor/link"
101+
- part: "--doctest-modules pytensor doc --ignore=pytensor/misc/check_duplicate_key.py --ignore=pytensor/link"
102102
float32: 1
103-
- part: "--doctest-modules pytensor --ignore=pytensor/misc/check_duplicate_key.py --ignore=pytensor/link"
103+
- part: "--doctest-modules pytensor doc --ignore=pytensor/misc/check_duplicate_key.py --ignore=pytensor/link"
104104
fast-compile: 1
105105
include:
106106
- install-numba: 1

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ tag_prefix = "rel-"
118118

119119
[tool.pytest.ini_options]
120120
addopts = "--durations=50 --doctest-modules --ignore=pytensor/link --ignore=pytensor/misc/check_duplicate_key.py"
121-
testpaths = ["pytensor/", "tests/"]
121+
testpaths = ["pytensor/", "tests/", "doc/"]
122122
xfail_strict = true
123123

124124
[tool.ruff]

0 commit comments

Comments
 (0)