Refactor GitHub Actions workflow to streamline unit tests and add example tests

This commit is contained in:
Palash Tyagi 2025-07-26 20:31:08 +01:00
parent 44ff16a0bb
commit 26213b28d6

View File

@ -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
@ -28,7 +26,6 @@ jobs:
fallback-runner: "ubuntu-latest"
github-token: ${{ secrets.CUSTOM_GH_TOKEN }}
run-unit-tests:
needs: pick-runner
if: github.event.pull_request.draft == false
@ -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: