Spaces:
Sleeping
Sleeping
| 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/ | |