From 31d1884fd570d923415be31aa4a4543144f25a1a Mon Sep 17 00:00:00 2001 From: Guillermo Perez Date: Wed, 8 Nov 2023 13:58:14 +0100 Subject: [PATCH] comment code coverage reports --- .github/workflows/sanity-checks.yml | 41 +++++++++++++++-------------- 1 file changed, 21 insertions(+), 20 deletions(-) diff --git a/.github/workflows/sanity-checks.yml b/.github/workflows/sanity-checks.yml index d47d6b6fa1..8881caee48 100644 --- a/.github/workflows/sanity-checks.yml +++ b/.github/workflows/sanity-checks.yml @@ -32,32 +32,33 @@ jobs: # Cache needs Google credentials: GWIP: ${{ secrets.GWIP_SCCACHE }} GSA: ${{ secrets.GSA_SCCACHE }} - - name: generate codecov reports - run: | - if ${{ contains(matrix.target, 'test' ) }}; then - echo "---- GENERATE CODE COVERAGE ----" - echo "# Install Tarpaulin" - cargo install --locked cargo-tarpaulin - # make Cargo.toml - echo "Generate code coverage for ${{ matrix.target }}" - cargo +nightly tarpaulin --verbose --no-fail-fast --workspace --timeout 300 --out Xml - fi + # Tarpaulin requires cargo 1.70.0: + # - name: generate codecov reports + # run: | + # if ${{ contains(matrix.target, 'test' ) }}; then + # echo "---- GENERATE CODE COVERAGE ----" + # echo "# Install Tarpaulin" + # cargo install --locked cargo-tarpaulin + # # make Cargo.toml + # echo "Generate code coverage for ${{ matrix.target }}" + # cargo +nightly tarpaulin --verbose --no-fail-fast --workspace --timeout 300 --out Xml + # fi - name: Runing cargo ${{ matrix.target }} run: ./ci/run-check.sh env: TARGET: ${{ matrix.target }} RUSTC_WRAPPER: "sccache" - # UPLOAD REPORTS - - name: Upload codecov report - uses: codecov/codecov-action@v3 - with: - # token: ${{ secrets.CODECOV_TOKEN }} - # files: ./coverage1.xml,./coverage2.xml # optional - # flags: unittests # optional - # name: codecov-umbrella # optional - # fail_ci_if_error: true # optional (default = false) - verbose: true # optional (default = false) + # UPLOAD REPORTS (requires cargo 1.70.0) + # - name: Upload codecov report + # uses: codecov/codecov-action@v3 + # with: + # # token: ${{ secrets.CODECOV_TOKEN }} + # # files: ./coverage1.xml,./coverage2.xml # optional + # # flags: unittests # optional + # # name: codecov-umbrella # optional + # # fail_ci_if_error: true # optional (default = false) + # verbose: true # optional (default = false) benchmark-check: name: bench-check-${{ matrix.runtime }}