mirror of
https://github.com/qdrant/qdrant.git
synced 2026-08-06 01:50:57 -05:00
64 lines
1.3 KiB
YAML
64 lines
1.3 KiB
YAML
name: Qdrant Edge Tests
|
|
|
|
on:
|
|
push:
|
|
branches: [ master, dev ]
|
|
pull_request:
|
|
branches: [ '**' ]
|
|
|
|
jobs:
|
|
edge-py-test:
|
|
name: Test Python bindings
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Install Rust
|
|
uses: dtolnay/rust-toolchain@stable
|
|
|
|
- name: Install mold
|
|
uses: rui314/setup-mold@v1
|
|
|
|
- name: Enable mold
|
|
run: |
|
|
mkdir .cargo
|
|
|
|
cat >.cargo/config.toml <<-EOF
|
|
[target.x86_64-unknown-linux-gnu]
|
|
linker = "clang"
|
|
rustflags = ["-C", "link-arg=-fuse-ld=/usr/local/bin/mold"]
|
|
EOF
|
|
|
|
- name: Install Python
|
|
uses: actions/setup-python@v6
|
|
with:
|
|
python-version: '3.14'
|
|
|
|
- name: Install maturin
|
|
run: pip install maturin
|
|
|
|
- name: Checkout Qdrant
|
|
uses: actions/checkout@v6
|
|
|
|
- name: Restore Rust build cache
|
|
uses: Swatinem/rust-cache@v2
|
|
|
|
- name: Build Qdrant Edge
|
|
run: |
|
|
cd lib/edge/python
|
|
|
|
python -m venv .venv
|
|
source .venv/bin/activate
|
|
|
|
maturin develop --no-default-features --features abi3
|
|
|
|
- name: Run Qdrant Edge examples
|
|
run: |
|
|
cd lib/edge/python
|
|
|
|
source .venv/bin/activate
|
|
|
|
python examples/demo.py
|
|
python examples/fusion-query.py
|
|
python examples/mmr-query.py
|