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:
parent
6bc40f8c44
commit
4fff99da1d
8
.github/workflows/ccpp.yml
vendored
8
.github/workflows/ccpp.yml
vendored
@ -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
|
||||
|
||||
|
@ -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)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user