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).
88 lines
2.4 KiB
YAML
88 lines
2.4 KiB
YAML
name: R2R Full Python Integration Test (ubuntu)
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
integration-test:
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 30
|
|
|
|
env:
|
|
TELEMETRY_ENABLED: 'false'
|
|
R2R_PROJECT_NAME: r2r_default
|
|
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 }}
|
|
PYTHONUNBUFFERED: '1'
|
|
PYTEST_ADDOPTS: '--color=yes'
|
|
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Set up Python and install dependencies
|
|
uses: ./.github/actions/setup-python-full
|
|
with:
|
|
os: ubuntu-latest
|
|
python-version: '3.12'
|
|
|
|
- name: Setup and start Docker
|
|
uses: ./.github/actions/setup-docker
|
|
id: docker-setup
|
|
|
|
- name: Login Docker
|
|
uses: ./.github/actions/login-docker
|
|
with:
|
|
docker_username: ${{ secrets.RAGTORICHES_DOCKER_UNAME }}
|
|
docker_password: ${{ secrets.RAGTORICHES_DOCKER_TOKEN }}
|
|
|
|
- name: Start R2R Full server
|
|
uses: ./.github/actions/start-r2r-full
|
|
|
|
- name: Wait for server to be ready
|
|
run: |
|
|
timeout=300 # 5 minutes timeout
|
|
while ! curl -s http://localhost:7272/health > /dev/null; do
|
|
if [ $timeout -le 0 ]; then
|
|
echo "Server failed to start within timeout"
|
|
exit 1
|
|
fi
|
|
echo "Waiting for server to be ready..."
|
|
sleep 5
|
|
timeout=$((timeout - 5))
|
|
done
|
|
|
|
- name: Run R2R Full Python Integration Test
|
|
run: |
|
|
cd py && uv run pytest tests/unit \
|
|
--verbose \
|
|
--capture=no \
|
|
--log-cli-level=INFO
|
|
- name: Run R2R Full Python Integration Test
|
|
run: |
|
|
cd py && uv run pytest tests/integration \
|
|
--verbose \
|
|
--capture=no \
|
|
--log-cli-level=INFO
|
|
|
|
- name: Check for test failures
|
|
if: failure()
|
|
run: |
|
|
echo "::error::Integration tests failed. Check the test results artifact for details."
|
|
exit 1
|
|
|
|
services:
|
|
redis:
|
|
image: redis:latest
|
|
ports:
|
|
- 6379:6379
|
|
options: >-
|
|
--health-cmd "redis-cli ping"
|
|
--health-interval 10s
|
|
--health-timeout 5s
|
|
--health-retries 5
|