Update ci.yaml to run tests on docs changes (#11651)

Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com>
pull/8967/merge
Glenn Jocher 7 months ago committed by GitHub
parent bbbd92b1fb
commit fd1521a1d9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 5
      .github/workflows/ci.yaml
  2. 8
      ultralytics/solutions/parking_management.py

@ -6,13 +6,8 @@ name: Ultralytics CI
on:
push:
branches: [main]
paths-ignore:
- "docs/**"
- "mkdocs.yml"
pull_request:
branches: [main]
paths-ignore:
- "docs/**"
schedule:
- cron: "0 0 * * *" # runs at 00:00 UTC every day
workflow_dispatch:

@ -99,7 +99,7 @@ class ParkingPtsSelection:
Draw bounding box on canvas.
Args:
box(list): Bounding box data
box (list): Bounding box data
"""
for i in range(4):
@ -176,7 +176,8 @@ class ParkingManagement:
self.model = YOLO(self.model_path)
return self.model
def parking_regions_extraction(self, json_file):
@staticmethod
def parking_regions_extraction(json_file):
"""
Extract parking regions from json file.
@ -185,8 +186,7 @@ class ParkingManagement:
"""
with open(json_file, "r") as json_file:
json_data = json.load(json_file)
return json_data
return json.load(json_file)
def process_data(self, json_data, im0, boxes, clss):
"""

Loading…
Cancel
Save