-
Notifications
You must be signed in to change notification settings - Fork 83
94 lines (90 loc) · 2.33 KB
/
ut.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
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