Skip to content

Conversation

@zephyr-sh
Copy link
Contributor

@zephyr-sh zephyr-sh commented Jan 18, 2026

把更多函數拉到頂層

@zephyr-sh zephyr-sh self-assigned this Jan 18, 2026
@github-actions
Copy link
Contributor

CI 概覽

項目 狀態
Ruff Lint ✅ 通過
Ruff Format ✅ 通過
Pytest ✅ 通過 (exit=0)
Coverage 行 99.97% / 分支 0%(門檻 行 99% / 分支 0%) → ✅
Coverage Gate ✅ 通過

快速連結

  • Workflow 執行
  • 測試 HTML:不可用
  • JUnit XML:不可用
  • Coverage HTML:不可用

Pytest 結果

  • 狀態: ✅ 通過 (exit=0)

測試環境

  • platform linux -- Python 3.10.19, pytest-9.0.2, pluggy-1.6.0 -- /home/shayne/actions-runner/_work/_tool/Python/3.10.19/x64/bin/python
  • rootdir: /home/shayne/actions-runner/_work/Capybara/Capybara
  • plugins: html-4.1.1, metadata-3.1.1, cov-7.0.0
  • 測試統計: 共 493; ✅ 通過 493; ❌ 失敗 0; ⚠️ 錯誤 0; ⏭️ 跳過 0; 耗時 3.596 秒

最慢測試 Top 20

測試 耗時 (秒)
tests.vision.videotools.test_video2frames_v2.test_video2frames_v2 0.386
tests.test_hidden_bugs_regressions.test_visualization_package_import_is_lazy 0.204
tests.vision.videotools.test_video2frames.test_video2frames_with_fps_greater_than_video_fps 0.160
tests.vision.videotools.test_video2frames.test_video2frames 0.093
tests.vision.videotools.test_video2frames_v2.test_video2frames_v2_with_fps 0.045
tests.vision.ipcam.test_camera.test_ipcam_capture_is_an_iterator_and_yields_frames 0.033
tests.vision.videotools.test_video2frames.test_video2frames_with_fps 0.033
tests.vision.visualization.test_draw.test_draw_detection_and_draw_detections_end_to_end 0.023
tests.openvinoengine.test_openvino_engine_stubbed.test_openvino_async_queue_requires_asyncinferqueue 0.021
tests.vision.visualization.test_draw.test_draw_text_draws_pixels 0.008
tests.openvinoengine.test_openvino_engine_stubbed.test_openvino_engine_runs_with_stub 0.005
tests.vision.videotools.test_video2frames.test_video2frames_rejects_non_positive_fps 0.005
tests.test_hidden_bugs_regressions.test_draw_text_falls_back_when_font_files_missing 0.004
tests.vision.test_functional.test_meanblur 0.003
tests.vision.test_improc.test_imread 0.003
tests.onnxengine.test_engine_stubbed.test_onnx_engine_with_stubbed_runtime 0.002
tests.onnxengine.test_engine_stubbed.test_onnx_engine_benchmark_validates_repeat_and_warmup 0.002
tests.onnxengine.test_engine_stubbed.test_onnx_engine_accepts_wrapped_feed_dict 0.002
tests.onnxengine.test_engine_stubbed.test_onnx_engine_iobinding_without_run_options 0.002
tests.onnxengine.test_engine_stubbed.test_onnx_engine_missing_required_input_raises_keyerror 0.002

覆蓋率

  • 總覆蓋率: 行 99.97% (3421/3422), 分支 0% (0/0)

覆蓋率最低的檔案 (前 10 名)

檔案 行覆蓋 分支覆蓋
vision/geometric.py 98.80% 0%
__init__.py 100% 0%
enums.py 100% 0%
mixins.py 100% 0%
runtime.py 100% 0%
typing.py 100% 0%
onnxengine/__init__.py 100% 0%
onnxengine/engine.py 100% 0%
onnxengine/metadata.py 100% 0%
onnxengine/utils.py 100% 0%

覆蓋率缺口

未覆蓋的檔案列表
Name                           Stmts   Miss  Cover   Missing
------------------------------------------------------------
capybara/vision/geometric.py      83      1    99%   252
------------------------------------------------------------
TOTAL                           3422      1    99%
37 files skipped due to complete coverage.
  • 產物: 不可用

@zephyr-sh zephyr-sh merged commit 382015e into main Jan 18, 2026
1 check passed
@zephyr-sh zephyr-sh deleted the fix/fix_import_error branch January 18, 2026 04:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants