Builds PaperTrail from the base skeleton into a full evidence-verification platform for the "Built with Claude: Life Sciences" hackathon (Builder Track). New named-user features (Build Beyond the Bench): - Lab Notebook Companion — rough bench notes -> structured, searchable, grounded experiment records (lib/labNotebook, /console/lab-notebook, migration 0059) - Clinical Trial Matcher — de-identified patient notes -> ranked eligible ClinicalTrials.gov trials with per-criterion inclusion/exclusion reasoning (lib/trialMatcher, /console/trial-matcher, migrations 0060) Platform: - Deterministic verification moat (biostats recompute, exact-span grounding) - 11 biomedical evidence engines (FAERS, GWAS, Open Targets, ChEMBL, ClinVar, PharmGKB, PubTator, DDI, repurposing, biomarker, unified verifier) - Evidence Intelligence (KG, dossier, provenance/export, RWE) + enterprise governance (RBAC, /api/v1 gateway, metering, audit chain, retention) - 17 OSS projects assimilated into native TypeScript on our stack (backend/engines retained + credited in NOTICE) - Multi-format upload (PDF/DOCX/XLSX/CSV/MD/TXT), logo, marketing site - Next.js 16 upgrade, benchmark harness (honest smoke-test caveat) Licensing: Apache-2.0 (LICENSE + NOTICE).
96 lines
2.9 KiB
YAML
96 lines
2.9 KiB
YAML
name: R2R JS SDK Integration Tests
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- '**'
|
|
|
|
jobs:
|
|
setup:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Set up Python and install dependencies
|
|
uses: ./.github/actions/setup-python-light
|
|
with:
|
|
os: ubuntu-latest
|
|
- name: Setup and start PostgreSQL
|
|
uses: ./.github/actions/setup-postgres-ext
|
|
with:
|
|
os: ubuntu-latest
|
|
- name: Start R2R Light server
|
|
uses: ./.github/actions/start-r2r-light
|
|
- name: Use Node.js
|
|
uses: actions/setup-node@v2
|
|
with:
|
|
node-version: "20.x"
|
|
- name: Install pnpm
|
|
uses: pnpm/action-setup@v2
|
|
with:
|
|
version: 8.x
|
|
run_install: false
|
|
- name: Install JS SDK dependencies
|
|
working-directory: ./js/sdk
|
|
run: pnpm install
|
|
- name: Check if R2R server is running
|
|
run: |
|
|
curl http://localhost:7272/v2/health || echo "Server not responding"
|
|
|
|
v3-integration-tests:
|
|
needs: setup
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
test-group:
|
|
- ChunksIntegrationSuperUser.test.ts
|
|
- CollectionsIntegrationSuperUser.test.ts
|
|
- ConversationsIntegrationSuperUser.test.ts
|
|
- DocumentsAndCollectionsIntegrationUser.test.ts
|
|
- DocumentsIntegrationSuperUser.test.ts
|
|
- GraphsIntegrationSuperUser.test.ts
|
|
- PromptsIntegrationSuperUser.test.ts
|
|
- RetrievalIntegrationSuperUser.test.ts
|
|
- SystemIntegrationSuperUser.test.ts
|
|
- SystemIntegrationUser.test.ts
|
|
- UsersIntegrationSuperUser.test.ts
|
|
env:
|
|
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
|
|
AZURE_API_KEY: ${{ secrets.AZURE_API_KEY }}
|
|
AZURE_API_BASE: ${{ secrets.AZURE_API_BASE }}
|
|
AZURE_API_VERSION: ${{ secrets.AZURE_API_VERSION }}
|
|
TELEMETRY_ENABLED: 'false'
|
|
R2R_POSTGRES_HOST: localhost
|
|
R2R_POSTGRES_DBNAME: postgres
|
|
R2R_POSTGRES_PORT: '5432'
|
|
R2R_POSTGRES_PASSWORD: postgres
|
|
R2R_POSTGRES_USER: postgres
|
|
R2R_PROJECT_NAME: r2r_default
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Set up Python and install dependencies
|
|
uses: ./.github/actions/setup-python-light
|
|
with:
|
|
os: ubuntu-latest
|
|
- name: Setup and start PostgreSQL
|
|
uses: ./.github/actions/setup-postgres-ext
|
|
with:
|
|
os: ubuntu-latest
|
|
- name: Start R2R Light server
|
|
uses: ./.github/actions/start-r2r-light
|
|
- name: Use Node.js
|
|
uses: actions/setup-node@v2
|
|
with:
|
|
node-version: "20.x"
|
|
- name: Install pnpm
|
|
uses: pnpm/action-setup@v2
|
|
with:
|
|
version: 8.x
|
|
run_install: false
|
|
- name: Install JS SDK dependencies
|
|
working-directory: ./js/sdk
|
|
run: pnpm install
|
|
- name: Run remaining tests
|
|
working-directory: ./js/sdk
|
|
run: pnpm jest ${{ matrix.test-group }}
|