Preetham22's picture
updated workflow
41a5966
name: MediLLM CI Pipeline
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- name: πŸ“₯ Checkout repository
uses: actions/checkout@v3
- name: 🐍 Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: πŸ“¦ Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install pytest flake8 black isort
- name: βœ… Lint code with flake8
run: flake8
- name: πŸ“¦ Check import order with isort (non-blocking)
run: |
isort . --check-only || echo "⚠️ isort issues detected (not blocking CI)"
- name: πŸ”§ Check code format with black (non-blocking)
run: |
black --check . || echo "⚠️ black formatting issues detected (not blocking CI)"
- name: πŸ§ͺ Run unit tests
run: |
pytest --cov=src tests/