simplify batch add docs #385
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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@v3 | |
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: pip install requests | |
run: pip install requests pytest numpy | |
- name: test | |
run: | | |
cd test | |
pytest test_vearch.py -x --log-cli-level=INFO | |
pytest test_document_* -k "not test_vearch_document_upsert_benchmark" -x --log-cli-level=INFO | |
pytest test_module_* -x --log-cli-level=INFO |