Skip to content

Delete .github/workflows/codeql.yaml (#227) #663

Delete .github/workflows/codeql.yaml (#227)

Delete .github/workflows/codeql.yaml (#227) #663

Workflow file for this run

# Ultralytics HUB-SDK 🚀, AGPL-3.0 license
# HUB-SDK Continuous Integration (CI) GitHub Actions tests
name: HUB-SDK CI
on:
push:
branches: [main]
pull_request_target:
branches: [main]
schedule:
- cron: "0 0 * * *" # runs at 00:00 UTC every day
workflow_dispatch:
env:
FIREBASE_CRED: ${{ secrets.FIREBASE_CRED }}
ULTRALYTICS_HUB_API: ${{ vars.ULTRALYTICS_HUB_API }}
ULTRALYTICS_HUB_WEB: ${{ vars.ULTRALYTICS_HUB_WEB }}
BUCKET_NAME: ${{ vars.BUCKET_NAME }}
jobs:
Docs:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.x"
cache: "pip" # caching pip dependencies
- name: Install Dependencies
run: |
pip install -e ".[dev]"
shell: bash
- name: Build Docs and Check for Warnings
run: |
mkdocs build --strict
shell: bash
Tests:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.x"
- name: Install dependencies
run: |
cd tests
pip install -r requirements.txt
- name: Download Test Data
run: |
cd tests
python utils/test_data.py download
- name: Run pytest
run: python -m pytest -v -m "smoke" tests
Summary:
runs-on: ubuntu-latest
needs: [Docs, Tests]
if: always()
steps:
- name: Check for failure and notify
if: (needs.Docs.result == 'failure' || needs.Tests.result == 'failure') && github.repository == 'ultralytics/hub-sdk' && (github.event_name == 'schedule' || github.event_name == 'push') && github.run_attempt == '1'
uses: slackapi/[email protected]
with:
webhook-type: incoming-webhook
webhook: ${{ secrets.SLACK_WEBHOOK_URL_HUBWEB }}
payload: |
text: "<!channel> GitHub Actions error for ${{ github.workflow }} ❌\n\n\n*Repository:* https://github.com/${{ github.repository }}\n*Action:* https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}\n*Author:* ${{ github.actor }}\n*Event:* ${{ github.event_name }}\n"