Skip to content

Commit

Permalink
run addons Python tests in regular builds (danmar#7060)
Browse files Browse the repository at this point in the history
  • Loading branch information
firewave authored Dec 4, 2024
1 parent 354f0e6 commit 32e506d
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/CI-unixish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -425,6 +425,21 @@ jobs:
../../cppcheck --dump naming_test.cpp
python3 ../naming.py --var='[a-z].*' --function='[a-z].*' naming_test.cpp.dump
- name: test addons (Python)
if: matrix.os != 'ubuntu-22.04'
run: |
python3 -m pytest -Werror --strict-markers -vv addons/test
env:
PYTHONPATH: ./addons

# we cannot specify -Werror since xml/etree/ElementTree.py in Python 3.10 contains an unclosed file
- name: test addons (Python)
if: matrix.os == 'ubuntu-22.04'
run: |
python3 -m pytest --strict-markers -vv addons/test
env:
PYTHONPATH: ./addons

- name: Build democlient
if: matrix.os == 'ubuntu-22.04'
run: |
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/CI-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,13 @@ jobs:
..\..\cppcheck --dump naming_test.cpp || exit /b !errorlevel!
python3 ..\naming.py --var='[a-z].*' --function='[a-z].*' naming_test.cpp.dump || exit /b !errorlevel!
- name: test addons (Python)
if: matrix.config == 'release'
run: |
python -m pytest -Werror --strict-markers -vv addons/test || exit /b !errorlevel!
env:
PYTHONPATH: ./addons

- name: Check Windows test syntax
if: matrix.config == 'debug'
run: |
Expand Down

0 comments on commit 32e506d

Please sign in to comment.