From 38315c550f9a4beaf23edddd2162961474c549c7 Mon Sep 17 00:00:00 2001 From: firewave Date: Mon, 2 Dec 2024 09:03:52 +0100 Subject: [PATCH 1/2] CI-windows.yml: run addons Python tests --- .github/workflows/CI-windows.yml | 7 +++++++ 1 file changed, 7 insertions(+) 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: | From 625e476beb1d64ca85f55027d9fdae926d29b73b Mon Sep 17 00:00:00 2001 From: firewave Date: Tue, 3 Dec 2024 12:58:42 +0100 Subject: [PATCH 2/2] CI-unixish.yml: run addons Python tests --- .github/workflows/CI-unixish.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) 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: |