Skip to content

Commit 32e506d

Browse files
authored
run addons Python tests in regular builds (danmar#7060)
1 parent 354f0e6 commit 32e506d

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

.github/workflows/CI-unixish.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -425,6 +425,21 @@ jobs:
425425
../../cppcheck --dump naming_test.cpp
426426
python3 ../naming.py --var='[a-z].*' --function='[a-z].*' naming_test.cpp.dump
427427
428+
- name: test addons (Python)
429+
if: matrix.os != 'ubuntu-22.04'
430+
run: |
431+
python3 -m pytest -Werror --strict-markers -vv addons/test
432+
env:
433+
PYTHONPATH: ./addons
434+
435+
# we cannot specify -Werror since xml/etree/ElementTree.py in Python 3.10 contains an unclosed file
436+
- name: test addons (Python)
437+
if: matrix.os == 'ubuntu-22.04'
438+
run: |
439+
python3 -m pytest --strict-markers -vv addons/test
440+
env:
441+
PYTHONPATH: ./addons
442+
428443
- name: Build democlient
429444
if: matrix.os == 'ubuntu-22.04'
430445
run: |

.github/workflows/CI-windows.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,13 @@ jobs:
224224
..\..\cppcheck --dump naming_test.cpp || exit /b !errorlevel!
225225
python3 ..\naming.py --var='[a-z].*' --function='[a-z].*' naming_test.cpp.dump || exit /b !errorlevel!
226226
227+
- name: test addons (Python)
228+
if: matrix.config == 'release'
229+
run: |
230+
python -m pytest -Werror --strict-markers -vv addons/test || exit /b !errorlevel!
231+
env:
232+
PYTHONPATH: ./addons
233+
227234
- name: Check Windows test syntax
228235
if: matrix.config == 'debug'
229236
run: |

0 commit comments

Comments
 (0)