From 995f1db96b807a39e39b7948c52a44022f1d3a85 Mon Sep 17 00:00:00 2001 From: William Wong Date: Wed, 6 Dec 2023 07:00:58 -0800 Subject: [PATCH] Disable Gcovr --- .github/workflows/pull-request-validation.yml | 74 ++++++++++--------- 1 file changed, 38 insertions(+), 36 deletions(-) diff --git a/.github/workflows/pull-request-validation.yml b/.github/workflows/pull-request-validation.yml index d9d0df1f41..264b1c09db 100644 --- a/.github/workflows/pull-request-validation.yml +++ b/.github/workflows/pull-request-validation.yml @@ -275,42 +275,44 @@ jobs: # name: Enable secure feed # run: npx https://aka.ms/EnableSecureFeed - - name: Install Gcovr - run: pip install gcovr - - - name: Merge cobertura-coverage-*.xml - run: | - gcovr \ - -a cobertura-coverage-1.xml \ - -a cobertura-coverage-2.xml \ - -a cobertura-coverage-3.xml \ - -a cobertura-coverage-4.xml \ - -a cobertura-coverage-5.xml \ - -a cobertura-coverage-6.xml \ - -a cobertura-coverage-7.xml \ - -a cobertura-coverage-8.xml \ - -a cobertura-coverage-9.xml \ - -a cobertura-coverage-10.xml \ - -a cobertura-coverage-11.xml \ - -a cobertura-coverage-12.xml \ - -a cobertura-coverage-13.xml \ - -a cobertura-coverage-14.xml \ - -a cobertura-coverage-15.xml \ - -a cobertura-coverage-16.xml \ - -a cobertura-coverage-17.xml \ - -a cobertura-coverage-18.xml \ - -a cobertura-coverage-19.xml \ - -a cobertura-coverage-20.xml \ - -a cobertura-coverage-unit.xml \ - --xml cobertura-coverage.xml - - - if: always() - name: Print Cobertura line coverage - run: gcovr cobertura-coverage.xml --txt - - - if: always() - name: Print Cobertura branch coverage - run: gcovr cobertura-coverage.xml --branches --txt + # TODO: Gcovr doesn't know how to load XML. + + # - name: Install Gcovr + # run: pip install gcovr + + # - name: Merge cobertura-coverage-*.xml + # run: | + # gcovr \ + # -a cobertura-coverage-1.xml \ + # -a cobertura-coverage-2.xml \ + # -a cobertura-coverage-3.xml \ + # -a cobertura-coverage-4.xml \ + # -a cobertura-coverage-5.xml \ + # -a cobertura-coverage-6.xml \ + # -a cobertura-coverage-7.xml \ + # -a cobertura-coverage-8.xml \ + # -a cobertura-coverage-9.xml \ + # -a cobertura-coverage-10.xml \ + # -a cobertura-coverage-11.xml \ + # -a cobertura-coverage-12.xml \ + # -a cobertura-coverage-13.xml \ + # -a cobertura-coverage-14.xml \ + # -a cobertura-coverage-15.xml \ + # -a cobertura-coverage-16.xml \ + # -a cobertura-coverage-17.xml \ + # -a cobertura-coverage-18.xml \ + # -a cobertura-coverage-19.xml \ + # -a cobertura-coverage-20.xml \ + # -a cobertura-coverage-unit.xml \ + # --xml cobertura-coverage.xml + + # - if: always() + # name: Print Cobertura line coverage + # run: gcovr cobertura-coverage.xml --txt + + # - if: always() + # name: Print Cobertura branch coverage + # run: gcovr cobertura-coverage.xml --branches --txt - name: Merge lcov-*.info run: |