From e1b1147c4f025f27fb0ecd8134723381eb0a8c0a Mon Sep 17 00:00:00 2001 From: Mingwei Zhang Date: Tue, 11 Jun 2024 13:05:50 -0700 Subject: [PATCH] update codecov pipeline config --- .github/workflows/codecov.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/codecov.yml b/.github/workflows/codecov.yml index 7f04eaf..2c9e264 100644 --- a/.github/workflows/codecov.yml +++ b/.github/workflows/codecov.yml @@ -11,19 +11,20 @@ on: jobs: # Run code coverage using cargo-llvm-cov then upload to codecov.io job_code_coverage: - name: llvm-cov - runs-on: self-hosted + runs-on: ubuntu-latest env: CARGO_TERM_COLOR: always steps: - uses: actions/checkout@v4 - # nightly is required for --doctests, see cargo-llvm-cov#2 + - name: Install Rust + run: rustup update stable + - name: Install cargo-llvm-cov + uses: taiki-e/install-action@cargo-llvm-cov - name: Generate code coverage run: cargo +nightly llvm-cov --all-features --workspace --lcov --doctests --output-path lcov.info - name: Upload coverage to Codecov uses: codecov/codecov-action@v4 - env: - CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} with: + token: ${{ secrets.CODECOV_TOKEN }} # not required for public repos files: lcov.info fail_ci_if_error: true