feat: Windows CI 矩阵 + .day/.lc5 二进制解析 fixture 测试#35
Merged
Conversation
- CI 矩阵扩展为 ubuntu+windows × 3.9/3.11(+ ubuntu 3.10), Windows 是本地读通达信文件的用户主场景;run 步骤统一 bash shell - tests/fixtures/:确定性合成字节 fixture(.day 深市 / 688 / .lc5), 生成器 make_fixtures.py 附真实文件切片方法(dd)备后续替换 - tests/test_reader.py:三条解析路径逐字段断言(pytdx A 股系数路径 / 688 自研 struct 回退路径 / lc5 分钟线),共 4 个测试 - 对标调研吸收(easy_tdx 的 fixture 回归法与 Windows 矩阵实践) Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
CI 覆盖 Windows(用户主场景),二进制解析器获得逐字段确定性回归测试。对标调研(easy_tdx 工程实践)的批次 A。
Related Issue
Closes #34
What Changed
defaults.run.shell: bash保证if [ -f ... ]语法在 Windows runner 可用tests/fixtures/:合成字节 fixture(深市 .day 2 条 / 688 .day 1 条 / .lc5 2 条),价格值选二进制可精确表示的数(×.25/.5/.75),断言可用==make_fixtures.py:fixture 生成器 + 真实文件切片方法注释(dd bs=32 count=5),数据盘可用后可换/补真实字节样本tests/test_reader.py:4 个测试覆盖三条解析路径——pytdx A 股系数路径(价/量 ×0.01)、688 自研 struct 回退(断言与 pytdx 同系数)、lc5 分钟线(日期位域 (年-2004)×2048+月×100+日)Done Criteria Mapping
How to Test
pytest tests/test_reader.py -v(52 passed 全量);观察本 PR 的 windows-latest job。Risks / Tradeoffs
🤖 Generated with Claude Code