Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions .github/workflows/real-yolo-smoke.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
name: Real YOLO CPU smoke test

# Intentionally manual: installing CPU inference dependencies is expensive
# and model compatibility needs deliberate review.
# Run only when model assets, this smoke test, or its workflow change.
# Ordinary docs and application PRs keep using the lightweight checks.
on:
workflow_dispatch:
push:
branches: [main]
paths:
- '.github/workflows/real-yolo-smoke.yml'
- 'inference/tests/smoke_real_model.py'
- 'inference/weights/**'

permissions:
contents: read
Expand Down
4 changes: 2 additions & 2 deletions docs/TESTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

## Run the real inference smoke test

After the workflow is available on `main`, from an authenticated GitHub CLI terminal:
The workflow runs automatically on `main` when model checkpoints, its test script, or the smoke workflow are changed. It can also be triggered manually from an authenticated GitHub CLI terminal:

```powershell
gh workflow run real-yolo-smoke.yml -R FuTseYi/CropLens
Expand All @@ -19,7 +19,7 @@ gh run list -R FuTseYi/CropLens --workflow real-yolo-smoke.yml --limit 1

Alternatively, use **Actions → Real YOLO CPU smoke test → Run workflow** in the GitHub repository.

The optional test installs CPU PyTorch/Ultralytics packages and may download substantial dependencies. It is intentionally not run on every PR. Read the run logs for the actual pass/fail status. A passing smoke test indicates only that **one checkpoint can load and process one repository sample**; it says nothing about inference accuracy or deployment readiness.
The optional test installs CPU PyTorch/Ultralytics packages and may download substantial dependencies. It is intentionally not run on every PR or on ordinary documentation updates. Read the run logs for the actual pass/fail status. A passing smoke test indicates only that **one checkpoint can load and process one repository sample**; it says nothing about inference accuracy or deployment readiness.

## Before claiming production readiness

Expand Down
Loading