Skip to content
Open
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
9 changes: 8 additions & 1 deletion .github/workflows/phase3-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,11 @@ jobs:
- name: Lint
run: ruff check services/memory/ libs/schemas/memory.py
- name: Test (no Redis required — uses fakeredis)
run: pytest tests/test_memory.py -v --tb=short --cov=services/memory --cov-report=term-missing
run: pytest tests/test_memory.py -v --tb=short --cov=services/memory --cov-report=term-missing
- name: Run Trivy Vulnerability Scanner
uses: aquasecurity/trivy-action@master
Comment thread
iamdeepaktiwari08 marked this conversation as resolved.
with:
scan-type: fs
scan-ref: .
exit-code: 1 # Fail the build if vulnerabilities are found
severity: CRITICAL,HIGH # Focus on actionable vulnerabilities
9 changes: 7 additions & 2 deletions services/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,7 @@
# services package
__all__ = []
"""Top-level service package.

Subpackages are intentionally not imported eagerly so focused test suites do
not need optional dependencies from unrelated services.
"""

__all__ = ["tracking", "memory", "detection", "reasoning"]
4 changes: 2 additions & 2 deletions services/tracking/tracker.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
import time
from pathlib import Path

from libs.config import settings
from libs.config.settings import settings
import cv2
import numpy as np
from deep_sort_realtime.deepsort_tracker import DeepSort
Expand Down Expand Up @@ -455,4 +455,4 @@ def _interpolate_trajectory(
return interpolated_points

if __name__ == "__main__":
main()
main()
Loading