run addon pytest scripts in github action because something fails on travis

This commit is contained in:
Daniel Marjamäki 2020-11-24 07:48:13 +01:00
parent 1ea89bcad8
commit f145ae967d
2 changed files with 11 additions and 1 deletions

View File

@ -27,6 +27,8 @@ jobs:
sudo pip3 install pexpect sudo pip3 install pexpect
sudo pip3 install pylint sudo pip3 install pylint
sudo pip3 install unittest2 sudo pip3 install unittest2
sudo pip install pytest
sudo pip3 install pytest
- name: run Shellcheck - name: run Shellcheck
run: | run: |
@ -46,3 +48,10 @@ jobs:
- name: check .json files - name: check .json files
run: | run: |
find . -name '*.json' | xargs -n 1 python3 -m json.tool > /dev/null 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

View File

@ -203,7 +203,8 @@ script:
- cd ../cppcheck\ 2/test/cli # path with space - cd ../cppcheck\ 2/test/cli # path with space
- python -m pytest test-*.py - python -m pytest test-*.py
- cd - - 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 # - PYTHONPATH=./addons python3 -m pytest addons/test/test-*.py
notifications: notifications: