Skip to content

Ship Open Brain 0.2 agent continuity and Hermes integration #32

Ship Open Brain 0.2 agent continuity and Hermes integration

Ship Open Brain 0.2 agent continuity and Hermes integration #32

Workflow file for this run

name: Verify
on:
push:
branches: [master, "agent/**"]
pull_request:
jobs:
test:
runs-on: ubuntu-latest
services:
postgres:
image: pgvector/pgvector:pg16
env:
POSTGRES_DB: openbrain
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
ports:
- 5432:5432
options: >-
--health-cmd "pg_isready -U postgres -d openbrain"
--health-interval 10s
--health-timeout 5s
--health-retries 5
env:
DB_HOST: localhost
DB_PORT: 5432
DB_NAME: openbrain
DB_USER: postgres
DB_PASSWORD: postgres
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.11"
cache: pip
- name: Install
run: pip install -e '.[dev]'
- name: Apply migrations
run: python scripts/migrate.py
- name: Test
run: pytest -q
- name: Build package
run: python -m build
- name: Smoke-test wheel and Hermes provider
run: |
python -m venv /tmp/openbrain-smoke
/tmp/openbrain-smoke/bin/pip install dist/*.whl
/tmp/openbrain-smoke/bin/openbrain --version
/tmp/openbrain-smoke/bin/openbrain install-hermes --hermes-home /tmp/hermes-smoke
test -f /tmp/hermes-smoke/plugins/openbrain/plugin.yaml
test -f /tmp/hermes-smoke/plugins/openbrain/__init__.py