kiji-proxy
kiji-proxy copied to clipboard
CI does not run the Python tests
The checks on PRs are:
- PR scope
- frontend lint
- Go lint
- Go tests
- Python lint
- PR title
- actionlint
- cla
None of them runs pytest, so "all checks green" says nothing about the Python tests. The v5 stack (#688, #689) adds about 1,500 lines of them (split, collator, data builder and benchmark tests). They currently pass only in local runs: 130 passed with uv run --all-extras pytest.
Things a CI job needs to handle:
- Plain
uv run pytestfails, because pytest is in thedevextra. --extra dev --extra trainingcan't collecttests/benchmark/{smoke_test,test_run_metrics}.py.run.pyimportsonnxruntimeat module top, andonnxruntimeis in thequantizationextra.- Some tests download Hub datasets or need model files. Mark them, or skip them in CI.
Suggested fix: add a workflow job running uv run --extra dev --extra training --extra quantization pytest -m "not network", or similar, on PRs that touch model/** or tests/**.