Files
qdrant/.github/workflows/edge-test.yml
dependabot[bot] c68b89297e build(deps): bump actions/checkout from 6.0.3 to 7.0.0 (#9538)
Bumps [actions/checkout](https://github.com/actions/checkout) from 6.0.3 to 7.0.0.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](df4cb1c069...9c091bb21b)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: 7.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-06-23 09:53:04 +02:00

112 lines
3.0 KiB
YAML

name: Qdrant Edge Tests
on:
push:
branches: [ master, dev ]
pull_request:
branches: [ '**' ]
permissions:
contents: read
jobs:
edge-test:
name: Test Qdrant Edge
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
# For PRs, only run on ubuntu to save CI time
os: >-
${{
github.event_name == 'pull_request'
&& fromJSON('["ubuntu-latest"]')
|| fromJSON('["ubuntu-latest", "macos-latest", "windows-latest"]')
}}
steps:
- name: Checkout Qdrant
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
- name: Install Rust nightly (for fmt)
uses: dtolnay/rust-toolchain@0f1b44df7e9cbb178d781a242338dfa5e243ad7f # nightly
with:
components: rustfmt
- name: Install Rust stable
uses: dtolnay/rust-toolchain@631a55b12751854ce901bb631d5902ceb48146f7 # stable
with:
components: rustfmt, clippy
- name: Install mold
if: runner.os == 'Linux'
uses: rui314/setup-mold@9c9c13bf4c3f1adef0cc596abc155580bcb04444 # v1
- name: Enable mold
if: runner.os == 'Linux'
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@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
with:
python-version: '3.14'
- name: Install Just
uses: ./.github/actions/setup-just
- name: Install uv
uses: astral-sh/setup-uv@fac544c07dec837d0ccb6301d7b5580bf5edae39 # v8.2.0
- name: Install tools
run: |
uv tool install ast-grep-cli
uv tool install maturin
- name: Setup Qdrant
uses: ./.github/actions/setup-qdrant
- name: Restore Rust build cache
uses: Swatinem/rust-cache@e18b497796c12c097a38f9edb9d0641fb99eee32 # v2
with:
shared-key: edge
# Only save the cache on dev; feature-branch caches would just get evicted under the 10 GB budget
save-if: ${{ github.ref == 'refs/heads/dev' }}
- name: Prepare data files
id: rs-prepare-data
working-directory: lib/edge
run: just prepare-data
- name: 🦀 Check Rust
working-directory: lib/edge
run: just rs-check
- name: 🦀 Build Rust examples
working-directory: lib/edge
run: just rs-examples-build
- name: 🦀 Run Rust examples
working-directory: lib/edge
run: just rs-examples
- name: 🐍 Build Python edge
working-directory: lib/edge/python
run: just py-build
- name: 🐍 Run Python examples
working-directory: lib/edge
run: just py-examples
- name: Check for uncommitted changes
if: always()
run: git diff --exit-code