Skip to content

CI 추가 (GitHub Actions) + 신규 DB 초기화 버그 수정 - #31

Merged
seoyoung1214 merged 1 commit into
mainfrom
ci/github-actions
Sep 2, 2026
Merged

CI 추가 (GitHub Actions) + 신규 DB 초기화 버그 수정#31
seoyoung1214 merged 1 commit into
mainfrom
ci/github-actions

Conversation

@seoyoung1214

Copy link
Copy Markdown
Collaborator

변경 내용

  • CI: PR·main 푸시마다 자동 실행 — ① py_compile 문법 검사 ② 오프라인 테스트(pytest) ③ 도커 이미지 빌드 검증
  • tests/test_offline.py: FakeClient로 API 없이 검색 파이프라인 전체를 검증 (정규화·기간분할·캐시 재사용·호출한도 이어받기·1위 비교·표 변환)
  • 버그 수정: 새(빈) DB에서 _seed_companies()가 participants 테이블 생성 전에 실행돼 크래시 — 테스트 작성 과정에서 발견, 생성 이후로 이동
    • 기존 노트북 DB에서는 테이블이 이미 있어 증상이 없었지만, A100 첫 배포(빈 data/) 때 터졌을 버그

🤖 Generated with Claude Code

- .github/workflows/ci.yml: PR·main 푸시마다 컴파일 검사 → 오프라인 테스트 → 도커 빌드
- tests/test_offline.py: API 없이 도는 테스트 (정규화, 기간 분할, 검색·캐시·한도, 1위 비교, 표 변환)
- 버그 수정: 빈 DB에서 companies 시드가 participants 생성 전에 실행되어
  OperationalError — 테이블 생성 이후로 이동 (테스트가 발견)

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@seoyoung1214
seoyoung1214 merged commit 7fa9d63 into main Sep 2, 2026
1 check passed
@seoyoung1214
seoyoung1214 deleted the ci/github-actions branch September 2, 2026 02:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant