test: add hardware module coverage#25
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
WalkthroughAdds ChangesHardware module test suite
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
|
thank you for your contribution, the changes are correct. |
Closes #4.
Summary
subprocess.runto cover NVIDIA, ROCm, Apple Silicon, and fallback local GPU detection pathsVerification
uv run --extra dev pytest tests/test_hardware.py -q --cov=modelinfo.hardware --cov-report=term-missing --cov-fail-under=100(12 tests, hardware.py 100%)uv run --extra dev pytest -q(32 passed)uv run --extra dev ruff check tests/test_hardware.pygit diff --checkSummary by CodeRabbit