fix: exclude synthetic fusion samples from summaries #22
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | ||
| on: | ||
| push: | ||
| branches: [main] | ||
| pull_request: | ||
| branches: [main] | ||
| jobs: | ||
| lint: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - uses: astral-sh/ruff-action@v3 | ||
| with: | ||
| src: scripts/ | ||
| args: check scripts/ | ||
| test: | ||
| runs-on: ubuntu-latest | ||
| strategy: | ||
| matrix: | ||
| python-version: ["3.12", "3.13"] | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - uses: actions/setup-python@v5 | ||
| with: | ||
| python-version: ${{ matrix.python-version }} | ||
| - name: Install dependencies | ||
| run: | | ||
| pip install -r requirements.txt | ||
| - name: Import check | ||
| run: | | ||
| cd scripts && python -c " | ||
| import sys; sys.path.insert(0, '.') | ||
| from bazi_engine.enums import Tiangan, Dizhi, Wuxing | ||
| from bazi_engine.ten_gods import wuxing_relation, get_ten_god | ||
| from bazi_engine.nayin_chain import find_all_nayin_relations | ||
| from bazi_engine.day_pillar_db import lookup_day_pillar, verify_known_cases | ||
| # Verify day pillar calculation | ||
| assert verify_known_cases(), 'Day pillar verification failed' | ||
| print('All imports OK') | ||
| " | ||
| - name: Quick integration test | ||
| run: | | ||
| cd scripts && python -c " | ||
| import sys; sys.path.insert(0, '.') | ||
| from bazi_engine.chart import build_chart | ||
| c = build_chart('test', '\u7537', 1990, 6, 15, 12) | ||
| d = c.to_dict() | ||
| assert d.get('four_pillars', {}).get('year'), 'Missing year pillar' | ||
| year_pillar = d['four_pillars']['year'] | ||
| print(f'Chart built: {year_pillar.get(\"stem\")}{year_pillar.get(\"branch\")}') | ||
| print('Integration test OK') | ||
| " | ||