Skip to content

Commit c17fcf2

Browse files
authored
Merge pull request #280 from jpreszler/ignore_tests_in_doctests
Ignore `causalpy/tests/` when running doctest to save a little time
2 parents 83cb28c + b747906 commit c17fcf2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: .github/workflows/ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
- name: Run doctests
3838
run: |
3939
pip install -e .[test]
40-
pytest --doctest-modules causalpy/
40+
pytest --doctest-modules --ignore=causalpy/tests/ causalpy/
4141
- name: Run tests
4242
run: |
4343
pip install -e .[test]

Diff for: Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ check_lint:
1818

1919
doctest:
2020
pip install causalpy[test]
21-
pytest --doctest-modules causalpy/
21+
pytest --doctest-modules --ignore=causalpy/tests/ causalpy/
2222

2323
test:
2424
pip install causalpy[test]

0 commit comments

Comments
 (0)