From 19e1f411770704ee680a833985c9409ee6294c2a Mon Sep 17 00:00:00 2001 From: Glenn Jocher Date: Thu, 12 Sep 2024 13:16:39 +0200 Subject: [PATCH] Update ci.yaml (#830) --- .github/workflows/ci.yaml | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 6ac5134..6a7c6d8 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -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 }} @@ -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 @@ -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 @@ -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