diff --git a/.github/workflows/scriptcheck.yml b/.github/workflows/scriptcheck.yml index 47f17faaa..00390a5bd 100644 --- a/.github/workflows/scriptcheck.yml +++ b/.github/workflows/scriptcheck.yml @@ -27,6 +27,8 @@ jobs: sudo pip3 install pexpect sudo pip3 install pylint sudo pip3 install unittest2 + sudo pip install pytest + sudo pip3 install pytest - name: run Shellcheck run: | @@ -46,3 +48,10 @@ jobs: - name: check .json files run: | find . -name '*.json' | xargs -n 1 python3 -m json.tool > /dev/null + + - name: test addons + run: | + make -s + PYTHONPATH=./addons python -m pytest addons/test/test-*.py + PYTHONPATH=./addons python3 -m pytest addons/test/test-*.py + diff --git a/.travis.yml b/.travis.yml index 332ce0663..16531efc2 100644 --- a/.travis.yml +++ b/.travis.yml @@ -203,7 +203,8 @@ script: - cd ../cppcheck\ 2/test/cli # path with space - python -m pytest test-*.py - cd - -# Testing addons (temporarily disabled because Travis fails) +# Testing addons (disabled 2020-11-24 because Travis fails, TODO try to enable these) +# - PYTHONPATH=./addons python -m pytest addons/test/test-*.py # - PYTHONPATH=./addons python3 -m pytest addons/test/test-*.py notifications: