File tree Expand file tree Collapse file tree 4 files changed +55
-0
lines changed Expand file tree Collapse file tree 4 files changed +55
-0
lines changed Original file line number Diff line number Diff line change @@ -275,6 +275,20 @@ tasks:
275
275
params :
276
276
file : src/langchain-js/langchainjs/libs/langchain-mongodb/results.xml
277
277
278
+ - name : test-mem0-python-local
279
+ tags : [ local ]
280
+ commands :
281
+ - func : " fetch repo"
282
+ - func : " setup local atlas"
283
+ - func : " execute tests"
284
+
285
+ - name : test-mem0-python-remote
286
+ tags : [ remote ]
287
+ commands :
288
+ - func : " fetch repo"
289
+ - func : " setup remote atlas"
290
+ - func : " execute tests"
291
+
278
292
buildvariants :
279
293
- name : test-semantic-kernel-python-rhel
280
294
display_name : Semantic-Kernel RHEL Python
@@ -416,3 +430,14 @@ buildvariants:
416
430
# tasks:
417
431
# - name: test-langchain-js-local
418
432
# - name: test-langchain-js-remote
433
+
434
+ - name : test-mem0-python-rhel
435
+ display_name : mem0 RHEL Python
436
+ expansions :
437
+ DIR : mem0-python
438
+ run_on :
439
+ - rhel87-small
440
+ tasks :
441
+ - name : test-mem0-python-local
442
+ - name : test-mem0-python-remote
443
+ batchtime : 10080 # 1 week
Original file line number Diff line number Diff line change @@ -47,6 +47,9 @@ case $DIR in
47
47
langchain-js)
48
48
MONGODB_URI=$LANGCHAIN_MONGODB_URI
49
49
;;
50
+ mem0-python)
51
+ MONGODB_URI=$MEM0_URI
52
+ ;;
50
53
* )
51
54
echo " Missing config in setup-remote.sh for DIR: $DIR "
52
55
exit 1
Original file line number Diff line number Diff line change
1
+ REPO_NAME = mem0
2
+ REPO_ORG = mem0ai
3
+ DATABASE = mem0_test_db
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ set -eu
4
+
5
+ # Get the MONGODB_URI.
6
+ SCRIPT_DIR=$( realpath " $( dirname ${BASH_SOURCE[0]} ) " )
7
+ ROOT_DIR=$( dirname $SCRIPT_DIR )
8
+ . $ROOT_DIR /env.sh
9
+
10
+ . $ROOT_DIR /.evergreen/utils.sh
11
+
12
+ PYTHON_BINARY=$( find_python3)
13
+
14
+ $PYTHON_BINARY -m venv venv_pipeline
15
+ source venv_pipeline/bin/activate
16
+
17
+ pip install hatch
18
+ make install_all
19
+
20
+ # Run tests.
21
+ export MONGODB_URI=$MONGODB_URI
22
+ pip install pytest
23
+ pip install .
24
+ pytest tests/vector_stores/test_mongodb.py
You can’t perform that action at this time.
0 commit comments