Update ci.yaml to run tests on docs changes (#11651)
Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com>
This commit is contained in:
parent
bbbd92b1fb
commit
fd1521a1d9
2 changed files with 4 additions and 9 deletions
5
.github/workflows/ci.yaml
vendored
5
.github/workflows/ci.yaml
vendored
|
|
@ -6,13 +6,8 @@ name: Ultralytics CI
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [main]
|
branches: [main]
|
||||||
paths-ignore:
|
|
||||||
- "docs/**"
|
|
||||||
- "mkdocs.yml"
|
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [main]
|
branches: [main]
|
||||||
paths-ignore:
|
|
||||||
- "docs/**"
|
|
||||||
schedule:
|
schedule:
|
||||||
- cron: "0 0 * * *" # runs at 00:00 UTC every day
|
- cron: "0 0 * * *" # runs at 00:00 UTC every day
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
|
||||||
|
|
@ -99,7 +99,7 @@ class ParkingPtsSelection:
|
||||||
Draw bounding box on canvas.
|
Draw bounding box on canvas.
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
box(list): Bounding box data
|
box (list): Bounding box data
|
||||||
"""
|
"""
|
||||||
|
|
||||||
for i in range(4):
|
for i in range(4):
|
||||||
|
|
@ -176,7 +176,8 @@ class ParkingManagement:
|
||||||
self.model = YOLO(self.model_path)
|
self.model = YOLO(self.model_path)
|
||||||
return self.model
|
return self.model
|
||||||
|
|
||||||
def parking_regions_extraction(self, json_file):
|
@staticmethod
|
||||||
|
def parking_regions_extraction(json_file):
|
||||||
"""
|
"""
|
||||||
Extract parking regions from json file.
|
Extract parking regions from json file.
|
||||||
|
|
||||||
|
|
@ -185,8 +186,7 @@ class ParkingManagement:
|
||||||
"""
|
"""
|
||||||
|
|
||||||
with open(json_file, "r") as json_file:
|
with open(json_file, "r") as json_file:
|
||||||
json_data = json.load(json_file)
|
return json.load(json_file)
|
||||||
return json_data
|
|
||||||
|
|
||||||
def process_data(self, json_data, im0, boxes, clss):
|
def process_data(self, json_data, im0, boxes, clss):
|
||||||
"""
|
"""
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue