diff --git a/.github/workflows/ccpp.yml b/.github/workflows/ccpp.yml index 8d7f04549..23ebe6634 100644 --- a/.github/workflows/ccpp.yml +++ b/.github/workflows/ccpp.yml @@ -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 + diff --git a/tests/main.py b/tests/main.py index ab8c47d27..0fe013db6 100755 --- a/tests/main.py +++ b/tests/main.py @@ -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)