-
Notifications
You must be signed in to change notification settings - Fork 2
81 lines (59 loc) · 1.99 KB
/
extensive_vector_search_tests.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
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
name: Run long running vector search tests
on:
push:
branches:
- dev
jobs:
test-exhaustive-vector-search:
runs-on: ubuntu-24.04
continue-on-error: false
strategy:
matrix:
python-version: ["3.12"]
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python setup.py
pip install -r requirements.txt
working-directory: tests
- name: Retrieve the secret and decode it to a file
env:
FEATURE_FILE: ${{ secrets.FEATURE_FILE }}
run: |
echo $FEATURE_FILE | base64 --decode > features.conf
working-directory: tests
- name: Docker Login
uses: docker/login-action@v2
with:
registry: aerospike.jfrog.io
username: ${{ secrets.JFROG_USERNAME }}
password: ${{ secrets.JFROG_PASSWORD }}
- name: Set up RANDFILE environment variable
run: echo "RANDFILE=$HOME/.rnd" >> $GITHUB_ENV
- name: Create .rnd file if it doesn't exist
run: touch $HOME/.rnd
- name: create config
run: |
assets/call_gen.sh
cat /etc/hosts
working-directory: tests
- name: Run unit tests
run: |
docker run -d --name aerospike-vector-search --network=host -p 5000:5000 -v $(pwd):/etc/aerospike-vector-search aerospike/aerospike-vector-search:0.10.0
docker run -d --name aerospike -p 3000:3000 -v .:/etc/aerospike aerospike/aerospike-server-enterprise:latest
sleep 5
python -m pytest standard -s --host 0.0.0.0 --port 5000 --extensive_vector_search -vs
mv .coverage coverage_data
working-directory: tests
- name: Upload test coverage
uses: actions/upload-artifact@v4
with:
name: coverage_exhaustive_vector_search
path: tests/coverage_data