1
0
mirror of https://github.com/lvgl/lvgl.git synced 2025-01-28 07:03:00 +08:00

feat(tests) upload coverage to codecov

This commit is contained in:
Themba Dube 2021-07-05 13:58:46 -04:00
parent 6bc40f8c44
commit 4fff99da1d
2 changed files with 8 additions and 1 deletions

View File

@ -15,4 +15,10 @@ jobs:
- uses: actions/checkout@v2
- uses: ammaraskar/gcc-problem-matcher@master
- name: Run tests
run: sudo apt-get install libpng-dev ruby-full; cd tests; python ./main.py
run: sudo apt-get install libpng-dev ruby-full; cd tests; python ./main.py report
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
with:
fail_ci_if_error: true
verbose: true

View File

@ -47,5 +47,6 @@ if test_report:
os.system("rm -r report")
os.system("mkdir report")
os.system("gcovr -r ../ --html-details -o report/index.html --exclude-directories '\.\./examples' --exclude-directories 'src/.*' --exclude-directories 'unity' --exclude 'lv_test_.*\.c'")
os.system("gcovr -r ../ -x report/coverage.xml --exclude-directories '\.\./examples' --exclude-directories 'src/.*' --exclude-directories 'unity' --exclude 'lv_test_.*\.c'")
print("Done: See report/index.html", flush=True)