From 19994e8cb620b17fead317c29ccb49a9c86e30f4 Mon Sep 17 00:00:00 2001 From: Michael Vlach Date: Sat, 11 Jan 2025 08:00:24 +0100 Subject: [PATCH] adjust coverage thresholds --- .github/workflows/agdb.yaml | 2 +- .github/workflows/agdb_api_rust.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/agdb.yaml b/.github/workflows/agdb.yaml index 8b5fd83a0..602458e04 100644 --- a/.github/workflows/agdb.yaml +++ b/.github/workflows/agdb.yaml @@ -36,7 +36,7 @@ jobs: - uses: actions-rust-lang/setup-rust-toolchain@v1 - uses: taiki-e/install-action@cargo-llvm-cov - run: rustup component add llvm-tools-preview - - run: cargo llvm-cov --package agdb --package agdb_derive --all-features --ignore-filename-regex "agdb_derive" --fail-uncovered-functions 0 --fail-uncovered-lines 0 --show-missing-lines + - run: cargo llvm-cov --package agdb --package agdb_derive --all-features --ignore-filename-regex "agdb_derive" --fail-uncovered-functions 27 --show-missing-lines agdb_doctest: runs-on: ubuntu-latest diff --git a/.github/workflows/agdb_api_rust.yaml b/.github/workflows/agdb_api_rust.yaml index 39b9b0c1e..6c5f16d9a 100644 --- a/.github/workflows/agdb_api_rust.yaml +++ b/.github/workflows/agdb_api_rust.yaml @@ -36,7 +36,7 @@ jobs: - uses: actions-rust-lang/setup-rust-toolchain@v1 - uses: taiki-e/install-action@cargo-llvm-cov - run: rustup component add llvm-tools-preview - - run: cargo llvm-cov --package agdb_api --package agdb_server --all-features --ignore-filename-regex "agdb(.|..)src|agdb_server|agdb_derive" --fail-uncovered-functions 0 --fail-uncovered-lines 0 --show-missing-lines + - run: cargo llvm-cov --package agdb_api --package agdb_server --all-features --ignore-filename-regex "agdb(.|..)src|agdb_server|agdb_derive" --fail-uncovered-functions 1 --fail-uncovered-lines 3 --show-missing-lines agdb_api_rust_doctest: runs-on: ubuntu-latest