Repository navigation
69 lines (54 loc) · 1.69 KB
/
Copy pathtest-memory-integration.yml
File metadata and controls
69 lines (54 loc) · 1.69 KB
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
name: Test Memory Integration
on:
pull_request:
branches: [ "main" ]
push:
branches: [ "main" ]
permissions:
contents: read
actions: write
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
test-mem0:
runs-on: ubuntu-latest
env:
OLLAMA_MAX_WAIT: 60
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.10
uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Install dependencies
run: |
python -m pip install uv
uv venv
source .venv/bin/activate
uv pip install -r requirements.txt
- name: Create and patch config for Mem0 tests
run: |
source .venv/bin/activate
cp aios/config/config.yaml.example aios/config/config.yaml
python scripts/patch_config_for_memory_tests.py
- name: Install Ollama
run: |
curl -fsSL https://ollama.com/install.sh | sh
ollama serve > ollama.log 2>&1 &
for ((i=1;i<=${OLLAMA_MAX_WAIT};i++)); do
curl -s http://localhost:11434/api/version && echo "Ollama ready" && break
echo "Waiting for Ollama… ($i/${OLLAMA_MAX_WAIT})"; sleep 1
done
ollama pull nomic-embed-text
- name: Run Mem0 provider integration tests
run: |
source .venv/bin/activate
pytest tests/modules/memory/test_mem0_provider.py -v -m integration
- name: Upload logs
if: always()
uses: actions/upload-artifact@v4
with:
name: memory-integration-logs
path: |
ollama.log