name: CI on: push: branches: [ main ] pull_request: branches: [ main ] jobs: lint: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - name: Python 설정 uses: actions/setup-python@v5 with: python-version: "3.11" - name: 의존성 설치 run: pip install -r requirements.txt - name: 문법 점검 run: | python -m py_compile app.py python -m py_compile auth.py python -m py_compile env.py python -m py_compile db.py python -m py_compile config.py python -m py_compile validators.py python -m py_compile utils.py python -m py_compile wordcloud.py python -m py_compile services/ai.py python -m py_compile views/home.py python -m py_compile views/lobby.py python -m py_compile components/admin_panel.py python -m py_compile components/teacher_auth.py python -m py_compile components/sidebar.py python -m py_compile components/chat_board.py python -m py_compile components/teacher_dashboard.py python -m py_compile components/teacher_hint.py python -m py_compile components/teacher_summary.py python -m py_compile components/teacher_records.py echo "✅ 문법 점검 통과!" test: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - name: Python 설정 uses: actions/setup-python@v5 with: python-version: "3.11" - name: 의존성 설치 run: pip install -r requirements.txt pytest - name: 단위 테스트 run: pytest tests/ -v