# 05 · ci-equivalent **演示**:用 `run_steps` 顺序执行命令,任一步非零退出立即停止(fail-fast),记录已完成步骤与日志——本地 CI 脚本的核心语义。 **运行**: ```sh uv run python examples/32-capstone-publishable-package/05-ci-equivalent/ci_equivalent.py ``` **预期输出**(3.12.9): ```text passed: True completed: 2 logs: ['lint ok', 'tests ok'] failed: False failed_at: 1 ``` **依赖**:仅标准库。 **注意**:真实 `ci.sh` 用 `set -euo pipefail` + `uv sync --frozen` + ruff/mypy/pytest;失败时保留日志、退出码非零,别用 `|| true` 掩盖。