diff --git a/.github/workflows/build_dependencies.yml b/.github/workflows/build_dependencies.yml index 758b227..3a30f66 100644 --- a/.github/workflows/build_dependencies.yml +++ b/.github/workflows/build_dependencies.yml @@ -177,6 +177,7 @@ jobs: - name: Code Coverage Run run: | + python -m pip install gcovr conan build \ -o sisl/*:malloc_impl=${{ inputs.malloc-impl }} \ -o iomgr/*:testing=off \ @@ -186,11 +187,12 @@ jobs: -s:h compiler.cppstd=23 \ --build missing \ . + gcovr --cobertura ./coverage.xml if: ${{ inputs.testing == 'True' && inputs.tooling == 'Coverage' }} - name: Upload coverage reports to Codecov uses: codecov/codecov-action@v5 with: - token: ${{ secrets.CODECOV_TOKEN }} - verbose: true + files: ./coverage.xml + disable_search: true if: ${{ inputs.testing == 'True' && inputs.tooling == 'Coverage' }} diff --git a/.jenkins/Jenkinsfile b/.jenkins/Jenkinsfile index c3051eb..638b76d 100644 --- a/.jenkins/Jenkinsfile +++ b/.jenkins/Jenkinsfile @@ -48,15 +48,6 @@ pipeline { } } - stage('Tag Stable Build') { - when { branch "${STABLE_BRANCH}" } - steps { - script { - TAG = "${VER}@" - } - } - } - stage("Compile") { steps { sh "conan build -s:h compiler.cppstd=23 ${BUILD_MISSING} -s:h build_type=Debug -o ${PROJECT}/*:sanitize=True ${CONAN_FLAGS} . ; \ diff --git a/gcovr.cfg b/gcovr.cfg new file mode 100644 index 0000000..cfba991 --- /dev/null +++ b/gcovr.cfg @@ -0,0 +1,17 @@ +high-threshold = 80 +medium-threshold = 65 + +merge-lines = yes +exclude-unreachable-branches = yes + +exclude = .*build.* +exclude = .*flip.* +exclude = .*generate.* +exclude = .*test.* + + +exclude-lines-by-pattern = .*DEBUG.* +exclude-lines-by-pattern = .*DBG.* +exclude-lines-by-pattern = .*LOG.* + +gcov-ignore-parse-errors = all