name: CI on: push: branches: [ "main" ] pull_request: branches: [ "main" ] jobs: lint: name: Lint (ruff) runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - name: Set up Python uses: actions/setup-python@v5 with: python-version: "3.10" - name: Install ruff run: pip install ruff>=0.4.0 - name: Run ruff run: ruff check . --select E,F,W --ignore E501,E402,W291,W293 import-check: name: Import Check runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - name: Set up Python uses: actions/setup-python@v5 with: python-version: "3.10" - name: Install dependencies run: pip install -r requirements.txt - name: Verify core service imports run: | python -c "from services.config_manager import ConfigManager; print('config_manager OK')" python -c "from services.llm_service import LLMService; print('llm_service OK')" python -c "from services.mcp_client import get_mcp_client; print('mcp_client OK')" python -c "from services.analytics_service import AnalyticsService; print('analytics_service OK')" python -c "from services.publish_queue import STATUS_LABELS; print('publish_queue OK')" python -c "from services.sd_service import SDService; print('sd_service OK')"