test docstrings in CI
@@ -122,9 +122,10 @@ jobs:
- name: test build docs
run: |
make docs-sphinx
- - name: test code in docs
+ - name: test code in docs and docstrings
run: |
pytest --doctest-glob="*.rst" docs/
+ pytest --doctest-modules --ignore-glob=*/tests gammapy
- name: test without datasets
run: |
unset GAMMAPY_DATA
