Skip to content

Commit f145ae9

Browse files
committed
run addon pytest scripts in github action because something fails on travis
1 parent 1ea89bc commit f145ae9

2 files changed

Lines changed: 11 additions & 1 deletion

File tree

.github/workflows/scriptcheck.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ jobs:
2727
sudo pip3 install pexpect
2828
sudo pip3 install pylint
2929
sudo pip3 install unittest2
30+
sudo pip install pytest
31+
sudo pip3 install pytest
3032
3133
- name: run Shellcheck
3234
run: |
@@ -46,3 +48,10 @@ jobs:
4648
- name: check .json files
4749
run: |
4850
find . -name '*.json' | xargs -n 1 python3 -m json.tool > /dev/null
51+
52+
- name: test addons
53+
run: |
54+
make -s
55+
PYTHONPATH=./addons python -m pytest addons/test/test-*.py
56+
PYTHONPATH=./addons python3 -m pytest addons/test/test-*.py
57+

.travis.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,8 @@ script:
203203
- cd ../cppcheck\ 2/test/cli # path with space
204204
- python -m pytest test-*.py
205205
- cd -
206-
# Testing addons (temporarily disabled because Travis fails)
206+
# Testing addons (disabled 2020-11-24 because Travis fails, TODO try to enable these)
207+
# - PYTHONPATH=./addons python -m pytest addons/test/test-*.py
207208
# - PYTHONPATH=./addons python3 -m pytest addons/test/test-*.py
208209

209210
notifications:

0 commit comments

Comments
 (0)