Skip to content

run(c6-v2): fourth read — first COMPUTED read: RV(k=10) ratio 1.0785,… #214

run(c6-v2): fourth read — first COMPUTED read: RV(k=10) ratio 1.0785,…

run(c6-v2): fourth read — first COMPUTED read: RV(k=10) ratio 1.0785,… #214

Workflow file for this run

name: compliance-regression
# Compliance gate (v4 Day 9): every signal-data response must carry the compliance
# block; metadata/account responses must not. This guard runs on every PR.
#
# NOTE: the test needs a Postgres `yuclaw_events` DB seeded with v3 snapshots/events
# (the integration fixtures). In CI this requires a Postgres service + a seed step;
# until that seed is wired, run locally: python3 -m pytest tests/test_compliance_regression.py -v
on:
pull_request:
paths:
- "v3/api/**"
- "v4/**"
- "sdk/**"
- "tests/test_compliance_regression.py"
push:
branches: [v3.0-evidence, main]
jobs:
compliance:
runs-on: ubuntu-latest
services:
postgres:
image: postgres:16
env:
POSTGRES_DB: yuclaw_events
POSTGRES_PASSWORD: postgres
ports: ["5432:5432"]
options: >-
--health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with: { python-version: "3.12" }
- name: Install deps
run: |
pip install fastapi httpx pytest psycopg2-binary pydantic jinja2 pandas \
click feedparser tenacity requests
pip install ./sdk # yuclaw_py (imported by the server + tests)
- name: Apply schema + migrations + seed
run: |
export PGPASSWORD=postgres
psql -h localhost -U postgres -d yuclaw_events -f v3/schema.sql || true
# migrations are for upgrading old DBs; some columns already exist in schema.sql — ignore those.
for m in v3/migrations/*.sql; do psql -h localhost -U postgres -d yuclaw_events -f "$m" || true; done
psql -h localhost -U postgres -d yuclaw_events -f tests/fixtures/v4_seed.sql
- name: Compliance regression
env:
PGHOST: localhost
PGUSER: postgres
PGPASSWORD: postgres
PYTHONPATH: ${{ github.workspace }} # makes v3/ and v4/ importable
run: python3 -m pytest tests/test_compliance_regression.py -v