Files
Mayne0213 b27daaa00c
Some checks failed
Build Docker Image / build-and-push (push) Has been cancelled
CI / lint-and-test (push) Has been cancelled
CHORE(merge): merge from develop
- Initial FastAPI setup and OMR service
- K3S deployment configuration
- Memory limits for image processing
2026-01-06 17:34:49 +09:00

48 lines
1.2 KiB
YAML

name: CI
on:
push:
branches: [main, develop]
pull_request:
branches: [main, develop]
jobs:
lint-and-test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
cache: 'pip'
cache-dependency-path: fastapi/requirements.txt
- name: Install dependencies
working-directory: fastapi
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install ruff pytest httpx
- name: Run Ruff linter
working-directory: fastapi
run: ruff check . --ignore E501
- name: Run Ruff formatter check
working-directory: fastapi
run: ruff format --check . || true
- name: Test FastAPI application import
working-directory: fastapi
run: |
python -c "from main import app; print('FastAPI app imported successfully')"
- name: Check application health endpoint
working-directory: fastapi
run: |
echo "CI completed successfully"