mirror of
https://github.com/hanzoai/datastore.git
synced 2026-09-26 13:55:07 +00:00
29 lines
733 B
Python
29 lines
733 B
Python
from praktika import Job, Workflow
|
|
|
|
from ci.defs.defs import BASE_BRANCH, SECRETS, RunnerLabels
|
|
|
|
# TODO: add alert on workflow failure
|
|
|
|
# TODO: make it native praktika workflow + native praktika job - generated automatically if statistics feature is enabled for any workflow
|
|
|
|
workflow = Workflow.Config(
|
|
name="NightlyStatistics",
|
|
event=Workflow.Event.SCHEDULE,
|
|
branches=[BASE_BRANCH],
|
|
jobs=[
|
|
Job.Config(
|
|
name="Collect Statistics",
|
|
command="python3 ./ci/jobs/collect_statistics.py",
|
|
runs_on=RunnerLabels.STYLE_CHECK_ARM,
|
|
)
|
|
],
|
|
secrets=SECRETS,
|
|
enable_report=True,
|
|
enable_cidb=False,
|
|
cron_schedules=["13 5 * * *"],
|
|
)
|
|
|
|
WORKFLOWS = [
|
|
workflow,
|
|
]
|