Skip to content

Commit

Permalink
[build] Run code examples in docs as tests.
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Seifert <m.seifert@digitalernachschub.de>
  • Loading branch information
seifertm committed Oct 24, 2023
1 parent 62bf444 commit b7c66db
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ clean-test: ## remove test and coverage artifacts
rm -fr htmlcov/

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

install:
pip install -U pre-commit
Expand Down
3 changes: 2 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,9 @@ branch = true
show_missing = true

[tool:pytest]
python_files = test_*.py *_example.py
addopts = -rsx --tb=short
testpaths = tests
testpaths = docs/source tests
asyncio_mode = auto
junit_family=xunit2
filterwarnings =
Expand Down

0 comments on commit b7c66db

Please sign in to comment.