File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1515 python-version : ' 3.12'
1616
1717 - name : Install dependencies
18- run : pip install numpy torch pytest
18+ run : pip install -r requirements-ci.txt
1919
2020 - name : Run pytest (CPU arms + contract; CUDA arms auto-skip)
2121 run : python -m pytest tests/ -q
Original file line number Diff line number Diff line change @@ -11,7 +11,9 @@ factor-cuda 是 **CUDA 因子截面分析加速**工具——GPU 加速量化因
1111
1212- 构建/运行环境支持矩阵见 ` docs/support_matrix.json ` (单一真源:CUDA 13.3 / VS2026 MSVC 19.51 / Python 3.12.7 / compute capability 8.9)
1313- 构建:` pwsh -NoProfile -File _build_poc3.ps1 <target> ` (CMake + Ninja)
14- - 测试:` PYTHONIOENCODING=utf-8 python -m pytest tests/ -q ` (期望 126 passed / 3 skipped)
14+ - 测试(Git Bash):` PYTHONIOENCODING=utf-8 python -m pytest tests/ -q `
15+ - 测试(PowerShell):` $env:PYTHONIOENCODING='utf-8'; python -m pytest tests/ -q `
16+ (本地 GPU 期望 126 passed / 3 skipped;GitHub Actions 无 GPU 跑 CPU/契约臂 75 passed)
1517- CUDA selfcheck:` build\poc3_*_selfcheck.exe ` (每算子 ALL PASS)
1618
1719## 代码约定(重要)
Original file line number Diff line number Diff line change 44
55factor-cuda 是一个开源量化工具。如发现安全漏洞(如任意代码执行、敏感信息泄漏、数据完整性破坏),请** 私有报告** (勿公开 Issue):
66
7- - 通过 GitHub 私有 Issue / Security Advisory:https://github.com/redamancy231-create/factor-cuda/security
8- - 或在 Issue 中标记 ` [SECURITY] ` (如无法私有提交 )
7+ - 通过 GitHub Security Advisory 私密提交 :https://github.com/redamancy231-create/factor-cuda/security/advisories/new
8+ - 或发送邮件至项目维护者(在 GitHub 仓库 About 页可见的联系方式 )
99
1010报告时请提供:
11111 . 漏洞描述(影响/危害)
Original file line number Diff line number Diff line change 55- ** 文档优先** :先读 ` README.md ` (三语:简体/English/繁體)、` docs/support_matrix.json ` (构建环境)、` CLAUDE.md ` (操作语义契约)、` CONTRIBUTING.md ` (贡献)
66- ** Bug 报告** :用 ` .github/ISSUE_TEMPLATE/bug_report.md ` 模板开 Issue
77- ** 功能请求** :用 ` .github/ISSUE_TEMPLATE/feature_request.md `
8- - ** 讨论** :GitHub Discussions / Issue 评论区
8+ - ** 讨论** :GitHub Issue(交流/问题咨询请在 Issue 评论区)
99
1010## 不提供
1111
Original file line number Diff line number Diff line change 1+ # GitHub Actions CI dependencies (locked for reproducible runs).
2+ # numpy pinned to the frozen oracle version (corr_oracle_v1.py fingerprint).
3+ numpy==2.4.4
4+ pytest==8.3.3
5+ torch>=2.0
You can’t perform that action at this time.
0 commit comments