Skip to content

Commit

Permalink
Update ci.yaml (#830)
Browse files Browse the repository at this point in the history
  • Loading branch information
glenn-jocher authored Sep 12, 2024
1 parent efc17d9 commit 19e1f41
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ on:
schedule:
- cron: "0 2 * * *" # runs every 24 hours, starting at 02:00 UTC

env:
API_KEY: ${{ secrets.ULTRALYTICS_HUB_API_KEY }}
MODEL_ID: ${{ secrets.ULTRALYTICS_HUB_MODEL_ID }}

jobs:
Tests:
runs-on: ${{ matrix.os }}
Expand All @@ -37,9 +41,6 @@ jobs:
- name: Test HUB training
continue-on-error: false
shell: python
env:
API_KEY: ${{ secrets.ULTRALYTICS_HUB_API_KEY }}
MODEL_ID: ${{ secrets.ULTRALYTICS_HUB_MODEL_ID }}
run: |
import os
from ultralytics import YOLO, hub
Expand All @@ -50,9 +51,6 @@ jobs:
model.train()
- name: Test HUB inference API
shell: python
env:
API_KEY: ${{ secrets.ULTRALYTICS_HUB_API_KEY }}
MODEL_ID: ${{ secrets.ULTRALYTICS_HUB_MODEL_ID }}
run: |
import os
import requests
Expand All @@ -69,9 +67,6 @@ jobs:
- name: Test HUB export
if: github.event_name == 'schedule' || github.event_name == 'workflow_dispatch'
shell: python
env:
API_KEY: ${{ secrets.ULTRALYTICS_HUB_API_KEY }}
MODEL_ID: ${{ secrets.ULTRALYTICS_HUB_MODEL_ID }}
run: |
import os
import time
Expand Down

0 comments on commit 19e1f41

Please sign in to comment.