-
Notifications
You must be signed in to change notification settings - Fork 317
48 lines (45 loc) · 1 KB
/
python_sdk_ci.yml
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
name: CI
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
ci:
runs-on: ubuntu-latest
# container: vearch/vearch_env:latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: compile
run: |
pwd
ls -l
cd cloud
./compile.sh
- name: build
run: |
ls -l build/lib
cd cloud
./build.sh
- name: gen config
run: |
cd cloud
cp ../config/config.toml .
- name: run docker
run: |
cd cloud
nohup docker run -p 8817:8817 -p 9001:9001 -v $PWD/config.toml:/vearch/config.toml vearch/vearch:latest all &
- name: sleep
run: sleep 30s
- name: install dependency
run: |
pip install requests pytest
pip install -r dev-requirements.txt
python setup.py bdist_wheel
pip install dist/pyvearch*
- name: python sdk test
run: |
cd sdk/python/vearch/test
pytest