Files
gaokao-volunteer-system/.gitignore
hermes-ops b4ecad2130
Some checks failed
CI / pytest (Python 3.10) (push) Has been cancelled
CI / pytest (Python 3.11) (push) Has been cancelled
CI / pytest (Python 3.12) (push) Has been cancelled
feat(ci): T10.1 GitHub Actions 多 Python 版本自动化测试
- .github/workflows/ci.yml: CI 流水线
  - 触发器: push / pull_request 到 main
  - 矩阵: Python 3.10 / 3.11 / 3.12
  - fail-fast: false(单版本失败不影响其他)
  - concurrency: 取消同分支旧运行
  - steps: checkout / setup-python / pip cache / 安装依赖 / 运行 pytest+coverage / 上传 coverage 产物
- pytest.ini: 统一测试发现(tests + data/*/tests),与 CI 行为一致
- requirements-dev.txt: 测试依赖最小集(pytest / pytest-cov / pytest-timeout / pytest-xdist)
- README.md: 顶部增加 CI 状态徽章
- .gitignore: 忽略 .coverage.* / coverage.xml

覆盖率硬门槛(--cov-fail-under)留待 T5.5,避免在 T10.1 阶段被尚未补齐的脚本/分享模块测试阻断。
本任务产出 coverage.xml 供 T10.2 codecov 集成使用。
2026-06-12 10:51:35 +08:00

63 lines
596 B
Plaintext

# 临时文件
*.tmp
*.temp
*.bak
*.swp
*.swo
*~
.DS_Store
Thumbs.db
*.log
# Python
__pycache__/
*.py[cod]
*$py.class
*.so
.Python
*.egg-info/
.eggs/
.pytest_cache/
.coverage
.coverage.*
coverage.xml
htmlcov/
.tox/
*.egg
.mypy_cache/
.ruff_cache/
venv/
.venv/
env/
# 编辑器
.vscode/
.idea/
*.sublime-project
*.sublime-workspace
# 浏览器生成
browser_screenshot_*.png
# 用户数据(不应提交)
data/private/
*.user
# 大文件
*.pdf
!docs/**/*.pdf
!data/examples/*.pdf
*.zip
*.tar.gz
*.rar
# 系统
.fuse_hidden*
.Trash-*
# 本地配置
.env
.env.local
*.local
config.local.*