diff --git a/.github/workflows/CI-unixish.yml b/.github/workflows/CI-unixish.yml index 854e5d5bf5f..31e58a2b3c1 100644 --- a/.github/workflows/CI-unixish.yml +++ b/.github/workflows/CI-unixish.yml @@ -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: | diff --git a/.github/workflows/CI-windows.yml b/.github/workflows/CI-windows.yml index 7234d55aa23..2caec0bc6ba 100644 --- a/.github/workflows/CI-windows.yml +++ b/.github/workflows/CI-windows.yml @@ -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: |