From 0e7c18656cc87f0375214ceaf29813fda9bcf087 Mon Sep 17 00:00:00 2001 From: Palash Tyagi <23239946+Magnus167@users.noreply.github.com> Date: Sun, 4 May 2025 01:27:21 +0100 Subject: [PATCH 1/3] Add condition to pick-runner job to ensure it only runs for non-draft pull requests --- .github/workflows/run-unit-tests.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/run-unit-tests.yml b/.github/workflows/run-unit-tests.yml index c6e2f91..7563add 100644 --- a/.github/workflows/run-unit-tests.yml +++ b/.github/workflows/run-unit-tests.yml @@ -12,6 +12,7 @@ concurrency: jobs: pick-runner: + if: github.event.pull_request.draft == false runs-on: ubuntu-latest outputs: runner: ${{ steps.choose.outputs.use-runner }} From d7385f789bdfe720a906183cdbc567c2f2745a4a Mon Sep 17 00:00:00 2001 From: Palash Tyagi <23239946+Magnus167@users.noreply.github.com> Date: Sun, 4 May 2025 01:31:32 +0100 Subject: [PATCH 2/3] Fix doctest command to include library tests in run-unit-tests workflow --- .github/workflows/run-unit-tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/run-unit-tests.yml b/.github/workflows/run-unit-tests.yml index 7563add..1e5df07 100644 --- a/.github/workflows/run-unit-tests.yml +++ b/.github/workflows/run-unit-tests.yml @@ -41,7 +41,7 @@ jobs: uses: taiki-e/install-action@cargo-llvm-cov - name: Run doctests - run: cargo test --doc --all-features --workspace --release + run: cargo test --lib --doc --all-features --workspace --release - name: Run unit tests with code coverage run: cargo llvm-cov --all-features --release --workspace --lcov --output-path lcov.info From 204cee0f47ff42974e0364a61284d244acc6ec70 Mon Sep 17 00:00:00 2001 From: Palash Tyagi <23239946+Magnus167@users.noreply.github.com> Date: Sun, 4 May 2025 02:01:09 +0100 Subject: [PATCH 3/3] Revert "Fix doctest command to include library tests in run-unit-tests workflow" This reverts commit d7385f789bdfe720a906183cdbc567c2f2745a4a. --- .github/workflows/run-unit-tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/run-unit-tests.yml b/.github/workflows/run-unit-tests.yml index 1e5df07..7563add 100644 --- a/.github/workflows/run-unit-tests.yml +++ b/.github/workflows/run-unit-tests.yml @@ -41,7 +41,7 @@ jobs: uses: taiki-e/install-action@cargo-llvm-cov - name: Run doctests - run: cargo test --lib --doc --all-features --workspace --release + run: cargo test --doc --all-features --workspace --release - name: Run unit tests with code coverage run: cargo llvm-cov --all-features --release --workspace --lcov --output-path lcov.info