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/