1445043649
|
a33b46b4af
|
ci(postgres): add Postgres workflow running @pytest.mark.postgres tests
新增 .github/workflows/backend-postgres-tests.yml,独立于现有
backend-unit-tests workflow:
- GitHub runner (ubuntu-latest) 自带 docker daemon
- testcontainers 在 runner 上起 postgres:16-alpine 容器
- uv sync --extra postgres-test 拉 testcontainers + asyncpg + psycopg
- pytest -m postgres 仅跑 PG 标签的 4 个 smoke test (+ 后续 PR 增量)
为什么独立 workflow 而不是合到 backend-unit-tests:
- 现有 fast 测试不受 PG container 启动延迟影响
- 可独立 fail-soft(早期 Stage 0 rollout 期间需要时加 continue-on-error)
- fork 用户不强制承担 docker infra 成本
Stage 0 PR1 T1.9.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
|
2026-05-10 22:55:53 +08:00 |
|