fix(ci): uv lock 생성 + setup-uv 옵션 정리 + UI 진행률 인디케이터 (#6, #4 부분)
All checks were successful
CI / Ruff + Test (Py3.11 + Py3.13) (3.11) (push) Successful in 23s
CI / Ruff + Test (Py3.11 + Py3.13) (3.13) (push) Successful in 23s

CI uv setup 실패 (#6 후속):
- 원인: astral-sh/setup-uv@v3 의 enable-cache:true 가 **/uv.lock 미발견 시 fail.
  7개 push 모두 ::error::No file ... matched to [**/uv.lock] → 10-20초 만에 abort.
- 해결: uv.lock 생성 (438KB, 89 packages 해결) + cache-dependency-glob 명시.

연쇄 수정 (uv.lock 생성 과정에서 노출):
- pyproject.toml: scipy/pyproj/numpy 핀을 hard-pin == 에서 range > = 로 완화
  (base vs [py313] extras 충돌 해소). requires-python ">=3.9" → ">=3.11"
  (pyproj>=3.7 wheel 가용 환경과 일치). [tool.uv] no-progress = false 제거 (deprecated).
- .gitea/workflows/ci.yml: 별도 Setup Python step 제거 (uv venv가 자동 fetch),
  install step 단순화 (matrix 분기 EXTRAS 변수), 모든 run: 에 shell: bash 명시.

UI 진행률 인디케이터 (#4 부분):
- self.progress_bar (CTkProgressBar mode=indeterminate, MC overlap orange #FF5F00)
  status_bar 우측에 hidden 배치. start_progress(label)/stop_progress() 메서드 추가.
- self.textbox height 120 → 80 (인라인 로그 비중 축소, 백엔드 파일이 주 기록처).

ruff cleanup (harness/perf.py):
- Optional[Callable[...]] → Callable[...] | None (UP045).
- try/except/pass → contextlib.suppress (SIM105).
- 미사용 # noqa: BLE001 제거 (RUF100).

검증: uv lock 성공, ruff check All checks passed, py_compile + AST OK.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-05-08 17:13:33 +09:00
parent 5a44c90ea6
commit fc963007b7
6 changed files with 2333 additions and 21 deletions

View File

@@ -37,25 +37,31 @@ jobs:
uses: astral-sh/setup-uv@v3
with:
enable-cache: true
- name: Setup Python ${{ matrix.python-version }}
run: uv python install ${{ matrix.python-version }}
cache-dependency-glob: "uv.lock"
- name: Install deps
shell: bash
run: |
uv venv .venv --python ${{ matrix.python-version }}
uv pip install --python .venv -e ".[dev]"
# Py3.13은 호환 핀 별도
set -e
if [ "${{ matrix.python-version }}" = "3.13" ]; then
uv pip install --python .venv -e ".[py313,dev]"
EXTRAS=".[py313,dev]"
else
EXTRAS=".[dev]"
fi
# uv 가 자동으로 Py 버전 fetch + .venv 생성. 별도 `uv python install`
# step 불필요 (uv venv 가 내부적으로 처리).
uv venv .venv --python ${{ matrix.python-version }}
source .venv/bin/activate
uv pip install -e "$EXTRAS"
- name: Ruff lint
shell: bash
run: |
source .venv/bin/activate
ruff check --output-format=github
- name: py_compile (전체 .py)
shell: bash
run: |
source .venv/bin/activate
python -c "
@@ -74,6 +80,7 @@ jobs:
"
- name: pytest (회귀)
shell: bash
run: |
source .venv/bin/activate
pytest -ra --tb=short -m "not slow and not integration"
@@ -81,6 +88,7 @@ jobs:
- name: pytest (slow + integration, allow failure)
if: ${{ matrix.python-version == '3.13' }}
continue-on-error: true
shell: bash
run: |
source .venv/bin/activate
pytest -ra --tb=short -m "slow or integration"