From 14639aa3bb1ded87c0779dc2e7f344c740e9f1dd Mon Sep 17 00:00:00 2001 From: ltabis Date: Tue, 28 Apr 2026 23:00:07 +0200 Subject: [PATCH] ci: move codecov to a pr only workflow --- .github/workflows/checks.yml | 15 --------------- .github/workflows/coverage.yml | 23 +++++++++++++++++++++++ 2 files changed, 23 insertions(+), 15 deletions(-) create mode 100644 .github/workflows/coverage.yml diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml index 0c9c8f7..b8a3ed6 100644 --- a/.github/workflows/checks.yml +++ b/.github/workflows/checks.yml @@ -29,18 +29,3 @@ jobs: with: components: clippy, rust-src - run: cargo clippy --tests -- -Dclippy::all -Dclippy::pedantic - - coverage: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - uses: dtolnay/rust-toolchain@stable - with: - components: llvm-tools-preview - - uses: taiki-e/install-action@cargo-llvm-cov - - run: cargo llvm-cov --all --lcov --output-path lcov.info - - uses: codecov/codecov-action@v5 - with: - files: lcov.info - fail_ci_if_error: true - token: ${{ secrets.CODECOV_TOKEN }} diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml new file mode 100644 index 0000000..c7b94c1 --- /dev/null +++ b/.github/workflows/coverage.yml @@ -0,0 +1,23 @@ +name: checks + +"on": + pull_request: + +permissions: + contents: read + +jobs: + coverage: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: dtolnay/rust-toolchain@stable + with: + components: llvm-tools-preview + - uses: taiki-e/install-action@cargo-llvm-cov + - run: cargo llvm-cov --all --lcov --output-path lcov.info + - uses: codecov/codecov-action@v5 + with: + files: lcov.info + fail_ci_if_error: true + token: ${{ secrets.CODECOV_TOKEN }}