diff --git a/.github/workflows/build_dependencies.yml b/.github/workflows/build_dependencies.yml index 758b227..b8f0fba 100644 --- a/.github/workflows/build_dependencies.yml +++ b/.github/workflows/build_dependencies.yml @@ -110,21 +110,11 @@ jobs: key_prefix: IOMgrDeps-${{ inputs.platform }}-${{ inputs.build-type }}-${{ inputs.malloc-impl }}-False if: ${{ inputs.testing == 'True' || steps.restore-cache.outputs.cache-hit != 'true' }} - - name: Retrieve Dependencies NuRaftMesg - uses: actions/checkout@main - with: - repository: eBay/nuraft_mesg - path: import/nuraft_mesg - ref: main - if: ${{ inputs.testing == 'True' || steps.restore-cache.outputs.cache-hit != 'true' }} - - name: Load NuRaftMesg Cache uses: eBay/sisl/.github/actions/load_conan2@master with: - testing: 'False' - path: import/nuraft_mesg + load_any: 'True' key_prefix: NuMesgDeps-${{ inputs.platform }}-${{ inputs.build-type }}-${{ inputs.malloc-impl }} - fail_on_cache_miss: true if: ${{ inputs.testing == 'True' || steps.restore-cache.outputs.cache-hit != 'true' }} - name: Retrieve Dependencies HomeStore @@ -144,13 +134,11 @@ jobs: fail_on_cache_miss: true if: ${{ inputs.testing == 'True' || steps.restore-cache.outputs.cache-hit != 'true' }} - - name: Export Recipes run: | sudo apt-get install -y python3-pyelftools libaio-dev python -m pip install pyelftools conan export --user oss --channel master import/homestore - conan export --user oss --channel main import/nuraft_mesg if: ${{ inputs.testing == 'True' || steps.restore-cache.outputs.cache-hit != 'true' }} - name: Create and Test Package @@ -177,6 +165,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 +175,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/.github/workflows/conan_build.yml b/.github/workflows/conan_build.yml index e144bb4..d9d2793 100644 --- a/.github/workflows/conan_build.yml +++ b/.github/workflows/conan_build.yml @@ -5,9 +5,11 @@ on: push: branches: - main + - stable/v3.x pull_request: branches: - main + - stable/v3.x jobs: Build: diff --git a/gcovr.cfg b/gcovr.cfg new file mode 100644 index 0000000..0b8666d --- /dev/null +++ b/gcovr.cfg @@ -0,0 +1,18 @@ +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.* +exclude-lines-by-pattern = .*ASSERT.* + +gcov-ignore-parse-errors = all