Skip to content

Commit b7c66db

Browse files
committed
[build] Run code examples in docs as tests.
Signed-off-by: Michael Seifert <[email protected]>
1 parent 62bf444 commit b7c66db

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ clean-test: ## remove test and coverage artifacts
2121
rm -fr htmlcov/
2222

2323
test:
24-
coverage run --parallel-mode --omit */_version.py -m pytest tests
24+
coverage run --parallel-mode --omit */_version.py -m pytest
2525

2626
install:
2727
pip install -U pre-commit

setup.cfg

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,9 @@ branch = true
6565
show_missing = true
6666

6767
[tool:pytest]
68+
python_files = test_*.py *_example.py
6869
addopts = -rsx --tb=short
69-
testpaths = tests
70+
testpaths = docs/source tests
7071
asyncio_mode = auto
7172
junit_family=xunit2
7273
filterwarnings =

0 commit comments

Comments
 (0)