Skip to content

Generate diskann cache asynchronously. #438

Generate diskann cache asynchronously.

Generate diskann cache asynchronously. #438

Workflow file for this run

name: Unit Test
# This workflow is triggered on pushes or pull request to the repository.
on:
push:
branches:
- main
pull_request:
# File paths to consider in the event. Optional; defaults to all.
paths:
- 'knowhere/**'
- 'python/**'
- 'unittest/**'
- 'thirdparty/**'
- 'build/**'
- 'build-support/**'
- 'cmake/**'
- 'scripts/**'
- '.github/workflows/ut.yaml'
- 'build.sh'
- 'CMakeLists.txt'
- 'Makefile'
- '!**.md'
jobs:
ubuntu:
name: Unit Test on ubuntu-20.04
runs-on: ubuntu-latest
container:
image: milvusdb/knowhere-cpu-build:amd64-ubuntu20.04-20221009-f1012cd
env:
INSTALL_OPENBLAS: true
LD_LIBRARY_PATH: "${LD_LIBRARY_PATH}:/usr/lib"
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install Dependency
run: |
ln -s /usr/bin/python2 /usr/bin/python
- name: Cpplint & Clang-format check
run: |
./build.sh -l
- name: Run Unittest
run: |
./build.sh -d -t Release -u
if [[ -f "output/unittest/faiss_test" ]]; then
./output/unittest/faiss_test
fi
./output/unittest/test_knowhere
ut:
name: Unit Test on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
timeout-minutes: 60
strategy:
fail-fast: false
matrix:
os: [ macos-11 ]
env:
INSTALL_OPENBLAS: true
LD_LIBRARY_PATH: "${LD_LIBRARY_PATH}:/usr/lib"
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install Dependency
run: |
./scripts/install_deps.sh
- name: Run Unittest
run: |
./build.sh -t Release -u
if [[ -f "output/unittest/faiss_test" ]]; then
./output/unittest/faiss_test
fi
./output/unittest/test_knowhere
swig-build:
name: Python3 SWIG compile
runs-on: ubuntu-20.04
timeout-minutes: 60
env:
INSTALL_OPENBLAS: true
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install Dependency
run: |
./scripts/install_deps.sh
- name: Build
run: |
./build.sh -t Release -u
- name: Swig Compile
run: |
echo "mock"
# cd python && python3 setup.py bdist_wheel