mirror of
https://github.com/lvgl/lvgl.git
synced 2026-05-30 23:51:54 +08:00
feat(tests) upload coverage to codecov
This commit is contained in:
@@ -15,4 +15,10 @@ jobs:
|
|||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- uses: ammaraskar/gcc-problem-matcher@master
|
- uses: ammaraskar/gcc-problem-matcher@master
|
||||||
- name: Run tests
|
- 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
|
||||||
|
|
||||||
|
|||||||
@@ -47,5 +47,6 @@ if test_report:
|
|||||||
os.system("rm -r report")
|
os.system("rm -r report")
|
||||||
os.system("mkdir 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 ../ --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)
|
print("Done: See report/index.html", flush=True)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user