perf(ci): mypy增量扫描优化
CI/CD Pipeline / Validate Code Quality And Tests (pull_request) Failing after 12m37s
CI/CD Pipeline / Staging API Integration Tests (pull_request) Failing after 1511h34m37s
CI/CD Pipeline / Build Staging Worker Image (pull_request) Failing after 1511h34m39s
CI/CD Pipeline / Staging E2E Tests (pull_request) Failing after 1511h34m37s
CI/CD Pipeline / Build Staging Web Image (pull_request) Failing after 1511h34m39s
CI/CD Pipeline / Staging API Integration Tests (push) Failing after 1511h45m13s
CI/CD Pipeline / Build Staging API Image (pull_request) Failing after 1511h34m39s
CI/CD Pipeline / Build Staging Worker Image (push) Failing after 1511h45m16s
CI/CD Pipeline / Staging E2E Tests (push) Failing after 1511h45m13s
CI/CD Pipeline / Build Staging Web Image (push) Failing after 1511h45m16s
CI/CD Pipeline / Production Browser E2E (pull_request) Failing after 1511h45m23s
CI/CD Pipeline / Build Staging API Image (push) Failing after 1511h45m16s
CI/CD Pipeline / Deploy Production (pull_request) Failing after 1511h45m25s
CI/CD Pipeline / Build Production Worker Image (pull_request) Failing after 1511h45m27s
CI/CD Pipeline / Build Production API Image (pull_request) Failing after 1511h45m28s
CI/CD Pipeline / Production Browser E2E (push) Failing after 1511h46m20s
CI/CD Pipeline / Build Production Worker Image (push) Failing after 1511h46m25s
CI/CD Pipeline / Build Production Web Image (push) Failing after 1511h46m25s
CI/CD Pipeline / Build Production API Image (push) Failing after 1511h46m25s
CI/CD Pipeline / Unit Tests (pull_request) Has been skipped
CI/CD Pipeline / Integration Tests (pull_request) Has been skipped
CI/CD Pipeline / Frontend Lint (pull_request) Has been skipped
CI/CD Pipeline / Deploy Staging (Watchtower auto-deploy) (pull_request) Failing after 1512h6m21s
CI/CD Pipeline / Build Production Web Image (pull_request) Failing after 1512h17m10s
CI/CD Pipeline / Validate Code Quality And Tests (push) Has been skipped
CI/CD Pipeline / Unit Tests (push) Has been skipped
CI/CD Pipeline / Integration Tests (push) Has been skipped
CI/CD Pipeline / Frontend Lint (push) Has been skipped
CI/CD Pipeline / Deploy Staging (Watchtower auto-deploy) (push) Failing after 1512h16m57s
CI/CD Pipeline / Deploy Production (push) Failing after 1512h18m5s

This commit is contained in:
2026-07-15 11:27:43 +08:00
committed by CI Bot
parent ae423c5207
commit 1fc3721203
+1 -1
View File
@@ -103,7 +103,7 @@ jobs:
- name: Type check (mypy, advisory mode)
if: always()
shell: sh
run: "set +e\necho \"=== Installing mypy ===\"\npython3 -m pip install -q mypy\nmypy --version\necho \"\"\necho \"=== Running mypy type check (advisory mode) ===\"\necho \"告警模式,不阻断CI\"\necho \"\"\n# 只检查核心业务代码,跳过测试和迁移\nEXIT_CODE=0\nmypy apps/api/app packages --ignore-missing-imports --no-site-packages --no-strict-optional --explicit-package-bases --exclude 'tests/|test_|migrations/|alembic/' --no-error-summary 2>&1 | head -60 || EXIT_CODE=$?\necho \"\"\nif [ \"$EXIT_CODE\" != \"0\" ]; then\n echo \"mypy 发现类型问题(告警模式,不阻断)\"\n echo \"建议后续逐步修复\"\nelse\n echo \"mypy 类型检查通过 ✅\"\nfi\nexit 0\n"
run: "bash scripts/ci/mypy_check.sh"
- name: Run security scan (bandit)
shell: sh
run: 'set -eu