Skip to content

Commit 50dc8fc

Browse files
authored
update Add Doctests python.yml
1 parent e023943 commit 50dc8fc

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/python.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,13 @@ jobs:
3636

3737
- name: Run Pytest tests
3838
run: pytest
39-
- name: Run only Doctests
40-
run: pytest --doctest-modules --doctest-only
39+
40+
- name: Run Doctests only
41+
run: |
42+
find . -name "*.py" -not -path "./.*" -not -path "./venv/*" -not -path "./tmp/*" -exec python -m doctest {} \; || true
43+
4144
- name: Run Ruff checks with ignored rules
4245
run: ruff check . --ignore B904,B905,EM101,EXE001,G004,ISC001,PLC0415,PLC1901,PLW060,PLW1641,PLW2901,PT011,PT018,PT028,S101,S311,SIM905,SLF001
4346

4447
- name: Run Mypy type checks
45-
run: mypy . --ignore-missing-imports || true
48+
run: mypy . --ignore-missing-imports || true

0 commit comments

Comments
 (0)