-
Notifications
You must be signed in to change notification settings - Fork 1
69 lines (62 loc) · 1.91 KB
/
Copy pathtest-memory-postgres.yml
File metadata and controls
69 lines (62 loc) · 1.91 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 Conversation Memory PostgreSQL Contracts
on:
workflow_call:
push:
branches:
- dev
paths:
- "apps/memory/**"
- "apps/shared/alembic/**"
- "apps/shared/db/models/conversation_memory.py"
- ".github/workflows/test-memory-postgres.yml"
permissions:
contents: read
jobs:
memory-postgres:
runs-on: ubuntu-latest
timeout-minutes: 20
services:
postgres:
image: pgvector/pgvector:pg16
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: postgres
ports:
- 5432:5432
options: >-
--health-cmd "pg_isready -U postgres -d postgres"
--health-interval 5s
--health-timeout 5s
--health-retries 12
env:
DB_HOST: 127.0.0.1
DB_PORT: "5432"
DB_USER: postgres
DB_PASSWORD: postgres
NODEASE_DISPOSABLE_DB_MAINTENANCE_DB: postgres
NODEASE_RUN_DISPOSABLE_DB_TEST: "1"
PYTHONPATH: ${{ github.workspace }}
steps:
- name: Checkout code
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6
- name: Install uv
uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0
with:
enable-cache: true
cache-dependency-glob: apps/shared/pyproject.toml
- name: Set up Python
uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6
with:
python-version: "3.11"
- name: Install Memory test dependencies
run: |
uv venv .venv-ci-memory --python "3.11"
uv pip install --python .venv-ci-memory/bin/python \
-e apps/shared \
pytest==9.1.1
- name: Run migration, concurrency, and rollback evidence
run: >-
.venv-ci-memory/bin/python -m pytest
apps/memory/tests/adapters/test_disposable_postgres.py
-q