Upload the unit-test coverage to codecov (use a separate flag)
authorAlexander Popov <alex.popov@linux.com>
Fri, 10 Mar 2023 21:03:49 +0000 (00:03 +0300)
committerAlexander Popov <alex.popov@linux.com>
Fri, 10 Mar 2023 21:03:49 +0000 (00:03 +0300)
.github/workflows/engine_unit-test.yml

index 92591c6296997cac34520bfad9e2a9a62edd6d95..873faceb92fdade31fef73d2342e0d771c9b5a09 100644 (file)
@@ -31,3 +31,12 @@ jobs:
       run: |
         coverage run --include=kconfig_hardened_check/engine.py,kconfig_hardened_check/test_engine.py -m unittest -v
         coverage xml -i -o coverage_unittest.xml
+
+    - name: Handle coverage
+      uses: codecov/codecov-action@v3
+      with:
+        files: ./coverage_unittest.xml
+        flags: engine_unit-test
+        name: codecov-umbrella
+        fail_ci_if_error: true
+        verbose: true