chore: advance embedding probe fixes #649
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| push: | |
| pull_request: | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| permissions: | |
| contents: read | |
| jobs: | |
| rust-sdk: | |
| name: Rust SDK | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v7 | |
| with: | |
| # This job executes repo code (cargo build/test); don't persist the | |
| # token in git config. | |
| persist-credentials: false | |
| # `vendor/tinytools` is a path dependency of this crate, so cargo | |
| # cannot even resolve the manifest without it. Without this the build | |
| # fails at `Updating crates.io index` with "failed to read | |
| # vendor/tinytools/crates/tinytools/Cargo.toml". | |
| submodules: recursive | |
| - uses: dtolnay/rust-toolchain@stable | |
| with: | |
| components: rustfmt, clippy | |
| - uses: Swatinem/rust-cache@v2 | |
| with: | |
| workspaces: . | |
| - name: Check formatting | |
| run: cargo fmt --all -- --check | |
| - name: Clippy | |
| run: cargo clippy --all-targets -- -D warnings | |
| - name: Clippy all features | |
| run: cargo clippy --all-targets --all-features -- -D warnings | |
| - name: Build | |
| run: cargo build --all-targets | |
| - name: Build all features | |
| run: cargo build --all-targets --all-features | |
| - name: Test | |
| run: cargo test | |
| - name: Test all features | |
| run: cargo test --all-features | |
| - name: Test optional features independently | |
| run: | | |
| cargo test --no-default-features --features sqlite | |
| cargo test --no-default-features --features tools | |
| cargo test --no-default-features --features multimodal | |
| - name: Coverage gate | |
| uses: taiki-e/install-action@cargo-llvm-cov | |
| - name: Verify line coverage | |
| run: >- | |
| cargo llvm-cov --all-features --workspace | |
| --ignore-filename-regex '(^|/)(tests?|examples)/|/test(_.*)?\.rs$' | |
| --fail-under-lines 85 |