refactor: remove DocumentEmbeddings from in memory vector store #104
This file contains 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
# Inspired by https://github.com/joshka/github-workflows/blob/main/.github/workflows/rust-check.yml | |
name: Lint & Test | |
on: | |
pull_request: | |
branches: | |
- main | |
push: | |
branches: | |
- main | |
workflow_call: | |
env: | |
CARGO_TERM_COLOR: always | |
# ensure that the workflow is only triggered once per PR, subsequent pushes to the PR will cancel | |
# and restart the workflow. See https://docs.github.com/en/actions/using-jobs/using-concurrency | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | |
cancel-in-progress: true | |
jobs: | |
fmt: | |
name: stable / fmt | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install Rust stable | |
uses: actions-rust-lang/setup-rust-toolchain@v1 | |
with: | |
components: rustfmt | |
- name: Run cargo fmt | |
run: cargo fmt -- --check | |
clippy: | |
name: stable / clippy | |
runs-on: ubuntu-latest | |
permissions: | |
checks: write | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install Rust stable | |
uses: actions-rust-lang/setup-rust-toolchain@v1 | |
with: | |
components: clippy | |
# Required to compile rig-lancedb | |
- name: Install Protoc | |
uses: arduino/setup-protoc@v3 | |
- name: Run clippy action | |
uses: clechasseur/rs-clippy-check@v3 | |
test: | |
name: stable / test | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install Rust stable | |
uses: actions-rust-lang/setup-rust-toolchain@v1 | |
- name: Install nextest | |
uses: taiki-e/install-action@v2 | |
with: | |
tool: nextest | |
# Required to compile rig-lancedb | |
- name: Install Protoc | |
uses: arduino/setup-protoc@v3 | |
- name: Test with latest nextest release | |
uses: actions-rs/cargo@v1 | |
with: | |
command: nextest | |
args: run --all-features |