Added Live Demo Link #4
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 . |