Skip to content

fix: exclude synthetic fusion samples from summaries #22

fix: exclude synthetic fusion samples from summaries

fix: exclude synthetic fusion samples from summaries #22

Workflow file for this run

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, '.')

Check failure on line 35 in .github/workflows/ci.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/ci.yml

Invalid workflow file

You have an error in your yaml syntax on line 35
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')
"