Skip to content

fixed the Streamlit Cloud deployment crash by stabilizing the runtime… #20

fixed the Streamlit Cloud deployment crash by stabilizing the runtime…

fixed the Streamlit Cloud deployment crash by stabilizing the runtime… #20

Workflow file for this run

name: CardioSense AI Clinical Pipeline
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Install Linting dependencies
run: |
pip install flake8
- name: Lint with flake8
# Stop build if there are Python syntax errors or undefined names
run: |
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
test:
needs: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Install Clinical stack
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Clinical Validation (Pytest)
run: |
export PYTHONPATH=$PYTHONPATH:.
pytest tests/
model-audit:
needs: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Install dependencies
run: |
pip install -r requirements.txt
- name: Verify Model Ingest (Smoke Test)
# Verifies main.py can run and produce preprocessor artifacts
run: |
export PYTHONPATH=$PYTHONPATH:.
python src/data/preprocessor.py # Verify preprocessor logic specifically
docker-build:
needs: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build Clinical Docker Image
run: |
docker build -t cardiosense-api:latest .