Skip to content

ci: add Python 3.9/3.11 matrix and regression tests - #3

Merged
amoseui merged 2 commits into
mainfrom
ci/python-39-matrix-and-tests
Aug 8, 2026
Merged

amoseui merged 2 commits into
mainfrom
ci/python-39-matrix-and-tests

Conversation

@amoseui

@amoseui amoseui commented Aug 8, 2026

Copy link
Copy Markdown
Contributor

Summary

CI가 Python 3.9와 3.11 두 버전에서 검증하도록 확장하고, 스크립트 회귀 테스트를 도입한다.

  • CI matrix: PR 체크를 Python 3.9 / 3.11 두 버전에서 병렬 실행
  • 3.9 호환: install-skills.py에 from __future__ import annotations 추가
  • 회귀 테스트: CLI가 정상 기동하는지 검증하는 unittest 신규 + CI 단계 편입

Background

  • 단일 버전 한계: 기존 CI는 Python 3.11만 검증해, 구버전 환경(3.9)에서의 문법 비호환을 잡지 못함
  • 저장소 위생: .gitignore에 __pycache__/가 있음에도 이미 커밋된 .pyc 파일이 계속 추적되던 문제 정리

Changes

  • CI matrix: pr-checks.yml에 python-version: ['3.9', '3.11'] strategy 추가
  • Regression tests 단계: CI에서 python3 -m unittest -v test_install_skills.py 실행
  • 3.9 호환: future import로 타입 힌트 문법을 3.9에서도 안전하게 처리
  • 테스트 신규: --help 실행이 성공하고 usage를 출력하는지 검증
  • .pyc 추적 해제: 커밋되어 있던 bytecode 파일을 인덱스에서 제거 (별도 커밋)

Test

  • 로컬 python3 -m unittest -v test_install_skills.py — 1 test OK
  • CI에서 3.9 / 3.11 matrix 통과 확인

amoseui added 2 commits August 8, 2026 14:03
- Run PR checks on Python 3.9 and 3.11 via a version matrix
- Add from __future__ import annotations to install-skills.py for 3.9 compatibility
- Add test_install_skills.py regression test and run it in CI
__pycache__/ is already listed in .gitignore, but a previously committed
.pyc file remained tracked. Remove it from the index.
@amoseui amoseui self-assigned this Aug 8, 2026
@amoseui
amoseui marked this pull request as ready for review August 8, 2026 05:06
@amoseui
amoseui merged commit 94fe4cc into main Aug 8, 2026
2 checks passed
@amoseui
amoseui deleted the ci/python-39-matrix-and-tests branch August 8, 2026 05:06
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