Skip to content

Commit 99d30da

Browse files
author
Swapin Vidya
committed
ci: add automated testing suite for python and laravel
1 parent 34bd990 commit 99d30da

3 files changed

Lines changed: 67 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: CI Suite - Edge Quantizer
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
jobs:
10+
test-python-core:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
- name: Set up Python 3.13
15+
uses: actions/setup-python@v5
16+
with:
17+
python-version: "3.13"
18+
- name: Install dependencies
19+
run: |
20+
cd core_quantizer
21+
python -m pip install --upgrade pip
22+
pip install -r requirements.txt
23+
- name: Run Test Suite
24+
run: |
25+
cd core_quantizer
26+
python -m pytest
27+
28+
test-laravel-gateway:
29+
runs-on: ubuntu-latest
30+
steps:
31+
- uses: actions/checkout@v4
32+
- name: Setup PHP
33+
uses: shivammathur/setup-php@v2
34+
with:
35+
php-version: '8.3'
36+
extensions: mbstring, dom, fileinfo, sqlite, gd
37+
- name: Install Composer Dependencies
38+
run: |
39+
cd api_gateway
40+
composer install --no-dev --no-scripts --prefer-dist
41+
- name: Initialize Database
42+
run: |
43+
cd api_gateway
44+
touch database/database.sqlite
45+
php artisan migrate --force

CITATION.cff

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ authors:
77
title: "BioGraph-Edge-Quantizer: Resource-Aware GNN Quantization for Clinical Edge Intelligence"
88
version: 1.0.0
99
date-released: 2026-05-02
10-
url: "https://github.com/[your-username]/BioGraph-Edge-Quantizer"
10+
url: "https://github.com/swapins/BioGraph-Edge-Quantizer"
1111
keywords:
1212
- "Graph Neural Networks"
1313
- "Model Quantization"

README.md

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,26 @@ query {
6666
}
6767
```
6868

69+
## ⚡ Quick Use (Inference Demo)
70+
71+
If you have already initialized the environments, run the full pipeline with these two commands:
72+
73+
**Step 1: Quantize & Validate Model**
74+
```bash
75+
# From root
76+
cd core_quantizer && python -m src.quantizer && python -m pytest
77+
```
78+
**Step 2: Query FHIR API**
79+
```bash
80+
# Start server in one terminal
81+
cd api_gateway && php artisan serve
82+
83+
# Run this curl in another to get the FHIR DiagnosticReport
84+
curl -X POST http://localhost:8000/graphql \
85+
-H "Content-Type: application/json" \
86+
-d '{"query": "query { diagnosticReport(patientId: \"SW-1985\") { aiInferenceScore edgeModelVersion } }"}'
87+
```
88+
6989
## Implementation Rationale
7090
* **Resource Efficiency:** Implements INT8 quantization to bridge the gap between heavy GNN research and edge-native execution.
7191
* **Interoperability:** Maps raw AI scores to **FHIR** `DiagnosticReport` resources for seamless clinical integration.
@@ -77,4 +97,4 @@ query {
7797
* **`CITATION.cff`**: Academic and professional attribution.
7898
* **`CONTRIBUTING.md`**: Architectural and coding standards for open-source contributors.
7999

80-
---
100+

0 commit comments

Comments
 (0)