|
|
|
@ -10,10 +10,24 @@ on: |
|
|
|
|
branches: [main] |
|
|
|
|
schedule: |
|
|
|
|
- cron: '0 0 * * *' # runs at 00:00 UTC every day |
|
|
|
|
workflow_dispatch: |
|
|
|
|
inputs: |
|
|
|
|
hub: |
|
|
|
|
description: 'Run HUB' |
|
|
|
|
default: false |
|
|
|
|
type: boolean |
|
|
|
|
tests: |
|
|
|
|
description: 'Run Tests' |
|
|
|
|
default: false |
|
|
|
|
type: boolean |
|
|
|
|
benchmarks: |
|
|
|
|
description: 'Run Benchmarks' |
|
|
|
|
default: false |
|
|
|
|
type: boolean |
|
|
|
|
|
|
|
|
|
jobs: |
|
|
|
|
HUB: |
|
|
|
|
if: github.repository == 'ultralytics/ultralytics' && (github.event_name == 'schedule' || github.event_name == 'push') |
|
|
|
|
if: github.repository == 'ultralytics/ultralytics' && (github.event_name == 'schedule' || github.event_name == 'push' || (github.event_name == 'workflow_dispatch' && github.event.inputs.tests == 'true')) |
|
|
|
|
runs-on: ${{ matrix.os }} |
|
|
|
|
strategy: |
|
|
|
|
fail-fast: false |
|
|
|
@ -74,6 +88,7 @@ jobs: |
|
|
|
|
print(json.dumps(response.json(), indent=2)) |
|
|
|
|
|
|
|
|
|
Benchmarks: |
|
|
|
|
if: github.event_name != 'workflow_dispatch' || github.event.inputs.benchmarks == 'true' |
|
|
|
|
runs-on: ${{ matrix.os }} |
|
|
|
|
strategy: |
|
|
|
|
fail-fast: false |
|
|
|
@ -126,6 +141,7 @@ jobs: |
|
|
|
|
echo "$(cat benchmarks.log)" >> $GITHUB_STEP_SUMMARY |
|
|
|
|
|
|
|
|
|
Tests: |
|
|
|
|
if: github.event_name != 'workflow_dispatch' || github.event.inputs.tests == 'true' |
|
|
|
|
timeout-minutes: 60 |
|
|
|
|
runs-on: ${{ matrix.os }} |
|
|
|
|
strategy: |
|
|
|
|