diff --git a/.github/workflows/general.yml b/.github/workflows/general.yml index 05b19264..467b8bf9 100644 --- a/.github/workflows/general.yml +++ b/.github/workflows/general.yml @@ -42,9 +42,6 @@ jobs: coverage: name: Code coverage runs-on: ubuntu-latest - container: - image: xd009642/tarpaulin:develop-nightly - options: --security-opt seccomp=unconfined steps: - name: Checkout repository uses: actions/checkout@v3 @@ -52,11 +49,13 @@ jobs: uses: actions/setup-python@v4 with: python-version: '3.10' + - name: Install cargo-llvm-cov + uses: taiki-e/install-action@cargo-llvm-cov - name: Generate code coverage - run: | - cargo +nightly tarpaulin --verbose --engine llvm --no-dead-code --workspace --timeout 120 --out xml - - name: Upload to codecov.io + run: cargo llvm-cov --all-features --workspace --lcov --output-path lcov.info + - name: Upload coverage to Codecov uses: codecov/codecov-action@v3 with: - token: ${{ secrets.CODECOV_TOKEN }} + token: ${{ secrets.CODECOV_TOKEN }} # not required for public repos + files: lcov.info fail_ci_if_error: true