From 26213b28d61c4bf13e4e249f3944a0fdcb27d477 Mon Sep 17 00:00:00 2001 From: Palash Tyagi <23239946+Magnus167@users.noreply.github.com> Date: Sat, 26 Jul 2025 20:31:08 +0100 Subject: [PATCH] Refactor GitHub Actions workflow to streamline unit tests and add example tests --- .github/workflows/run-unit-tests.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/run-unit-tests.yml b/.github/workflows/run-unit-tests.yml index 10eb847..78ed71c 100644 --- a/.github/workflows/run-unit-tests.yml +++ b/.github/workflows/run-unit-tests.yml @@ -12,14 +12,12 @@ concurrency: jobs: pick-runner: - if: github.event.pull_request.draft == false runs-on: ubuntu-latest outputs: runner: ${{ steps.choose.outputs.use-runner }} steps: - - uses: actions/checkout@v4 - id: choose uses: ./.github/actions/runner-fallback @@ -27,7 +25,6 @@ jobs: primary-runner: "self-hosted" fallback-runner: "ubuntu-latest" github-token: ${{ secrets.CUSTOM_GH_TOKEN }} - run-unit-tests: needs: pick-runner @@ -56,6 +53,12 @@ jobs: - name: Test docs generation run: cargo doc --no-deps --release + - name: Test examples + run: cargo test --examples --release + + - name: Cargo test all targets + run: cargo test --all-targets --release + - name: Upload coverage to Codecov uses: codecov/codecov-action@v3 with: