dev-yuje's picture
feat: ํ”„๋กœ์ ํŠธ ์ดˆ๊ธฐ ๊ตฌ์„ฑ ๋ฐ GraphRAG ํ…Œ์ŠคํŠธ ํŒŒ์ดํ”„๋ผ์ธ ์—ฐ๋™
cb92864
raw
history blame
1.07 kB
name: CI
on:
push:
branches: [main]
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: ์†Œ์Šค์ฝ”๋“œ ์ฒดํฌ์•„์›ƒ
uses: actions/checkout@v4
- name: Python 3.10 ํ™˜๊ฒฝ ๊ตฌ์„ฑ
uses: actions/setup-python@v5
with:
python-version: "3.10"
cache: "pip" # ์˜์กด์„ฑ ์„ค์น˜ ์†๋„ ๊ฐ€์†
- name: ์˜์กด์„ฑ ๋ฐ ๊ฐœ๋ฐœ ๋„๊ตฌ ์„ค์น˜
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install ruff mypy pytest pytest-cov
- name: ์ฝ”๋“œ ์Šคํƒ€์ผ ๋ฐ ๋ฆฐํŠธ ๊ฒ€์‚ฌ (Ruff)
run: ruff check .
- name: ์ •์  ํƒ€์ž… ๊ฒ€์‚ฌ (MyPy)
run: mypy src/ --ignore-missing-imports
- name: ํ…Œ์ŠคํŠธ ์‹คํ–‰ (ํ†ตํ•ฉ ํ…Œ์ŠคํŠธ ์ž๋™ Skip ํฌํ•จ)
run: pytest tests/ -v
- name: ํ…Œ์ŠคํŠธ ์ปค๋ฒ„๋ฆฌ์ง€ ๋ฆฌํฌํŠธ ์ƒ์„ฑ
run: pytest --cov=src --cov-fail-under=20
- name: ๋ฏธ์‚ฌ์šฉ ์ฝ”๋“œ ๊ฒ€์‚ฌ (Vulture)
run: |
pip install vulture
vulture src/ --min-confidence 80