feat: Phase 7 错误处理加固 #3
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| push: | |
| branches: ["main", "feat/**"] | |
| pull_request: | |
| branches: ["main"] | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v5 | |
| with: | |
| enable-cache: true | |
| - name: Install dependencies | |
| run: uv sync --dev --no-install-project | |
| - name: Lint (ruff) | |
| run: uv run ruff check tests/ | |
| - name: Format check (ruff) | |
| run: uv run ruff format --check tests/ | |
| - name: Unit tests | |
| run: uv run pytest tests/unit/ -v --tb=short |