Commit b3f29e3
fix(ci): green up the test job on a fresh clone
Two bugs in test_phase0_gate.py surfaced in CI but never locally
because my dev tree predates the issues:
1. test_directory_structure asserts that
``defaultplusplus/src/defaultplusplus/pretrained/weights/`` is
a directory. It was empty so git never tracked it. Add a
.gitkeep so the directory survives a fresh clone.
2. test_pyproject_toml does ``import tomllib`` unconditionally.
``tomllib`` is stdlib only on Python 3.11+. Fall back to
``tomli`` on 3.10 (the upstream of tomllib with the identical
API). Added ``tomli>=2.0; python_version < '3.11'`` to the
[dev] extra so it installs only where needed.
Local suite: 150 passed, no regressions. Should clear the matrix on
3.10 / 3.11 / 3.12.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 068dfdf commit b3f29e3
3 files changed
Lines changed: 13 additions & 1 deletion
File tree
- defaultplusplus
- src/defaultplusplus/pretrained/weights
- tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
95 | 98 | | |
96 | 99 | | |
97 | 100 | | |
| |||
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | | - | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
56 | 62 | | |
57 | 63 | | |
58 | 64 | | |
| |||
0 commit comments