-
Notifications
You must be signed in to change notification settings - Fork 0
63 lines (50 loc) · 1.69 KB
/
Copy pathci.yml
File metadata and controls
63 lines (50 loc) · 1.69 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
name: CI
# IMPLEMENTATION_ROADMAP §1 P12.3 — ubuntu + macos matrix
# lint (ruff) + type check (mypy --strict) + unit/integration tests (pytest -m "not e2e")
# e2e tests는 ANTHROPIC_API_KEY 필요 — manual / nightly로 별도 처리.
on:
push:
branches: ["**"]
pull_request:
branches: [main]
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]
python-version: ["3.11"]
steps:
- uses: actions/checkout@v5
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
cache: pip
# Polish P-4 (B2): Java compile 분기 cover 위해 javac 설치
- name: Set up JDK 17 (B2 — Java compile coverage)
uses: actions/setup-java@v5
with:
distribution: temurin
java-version: "17"
- name: Verify javac
run: javac -version
# Polish P-4 (A4): Docker는 ubuntu runner에 기본 설치, macOS는 skip
- name: Verify Docker (ubuntu only — A4)
if: matrix.os == 'ubuntu-latest'
run: docker --version
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install -e .
- name: Lint (ruff)
run: ruff check ipe tests
- name: Type check (mypy --strict)
run: mypy --strict ipe
- name: Unit + integration tests (skip e2e)
run: pytest -q -m "not e2e" --cov=ipe --cov-report=term
- name: Coverage threshold (80%+)
run: |
coverage report --fail-under=80