5eaf4fb931
CI 완료(성공/실패) 시 PR에 자동 코멘트 추가. Gitea 구독 알림과 연동 -> kjh2064@gmail.com 이메일 알림 발송. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
65 lines
2.1 KiB
YAML
65 lines
2.1 KiB
YAML
name: Quant Engine CI/CD Pipeline
|
|
|
|
on:
|
|
push:
|
|
branches: [ main ]
|
|
pull_request:
|
|
branches: [ main ]
|
|
|
|
jobs:
|
|
validate-and-build:
|
|
# Synology NAS act_runner: host-based 실행 (Docker 불필요)
|
|
runs-on: self-hosted
|
|
|
|
steps:
|
|
- name: Checkout Code
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Install Python Dependencies
|
|
run: |
|
|
python3 -m pip install --upgrade pip --quiet
|
|
if [ -f requirements.txt ]; then pip3 install -r requirements.txt --quiet; fi
|
|
pip3 install yfinance pandas pyyaml openpyxl --quiet
|
|
|
|
- name: Install Node Dependencies
|
|
run: npm install --quiet
|
|
|
|
- name: Validate Specs
|
|
run: python3 tools/validate_specs.py
|
|
|
|
- name: Validate Formula Registry
|
|
run: python3 tools/validate_formula_registry.py
|
|
|
|
- name: Validate Golden Case Coverage
|
|
run: python3 tools/validate_golden_coverage_100.py
|
|
|
|
- name: Build Rebalance Engine V2
|
|
run: python3 tools/build_rebalance_engine_v2.py
|
|
|
|
- name: Ingest Fundamentals V2 (Dry Run)
|
|
run: python3 tools/ingest_fundamental_raw.py --no-naver
|
|
env:
|
|
DART_API_KEY: ${{ secrets.DART_API_KEY }}
|
|
|
|
- name: Run Full Integration Gate
|
|
run: python3 tools/run_release_dag_v3.py --mode release --strict
|
|
|
|
- name: Build Operational Bundle
|
|
run: python3 tools/build_bundle.py
|
|
|
|
- name: Notify PR Result
|
|
if: always() && github.event_name == 'pull_request'
|
|
run: |
|
|
STATUS="${{ job.status }}"
|
|
PR_NUM="${{ github.event.pull_request.number }}"
|
|
RUN_URL="${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
|
|
if [ "$STATUS" = "success" ]; then
|
|
MSG="✅ **CI PASS** — gate=PASS step_count=55\n\n[워크플로우 로그](${RUN_URL})"
|
|
else
|
|
MSG="❌ **CI FAIL** — 로그 확인 필요\n\n[워크플로우 로그](${RUN_URL})"
|
|
fi
|
|
curl -s -X POST "${{ github.api_url }}/repos/${{ github.repository }}/issues/${PR_NUM}/comments" \
|
|
-H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
|
|
-H "Content-Type: application/json" \
|
|
-d "{\"body\":\"${MSG}\"}"
|