Skip to content

Create ci.yml with Install and Docs steps #11

Create ci.yml with Install and Docs steps

Create ci.yml with Install and Docs steps #11

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, develop]
pull_request:
branches: [main, develop]
schedule:
- cron: "0 0 * * *" # runs at 00:00 UTC every day
workflow_dispatch:
jobs:
build-and-test:
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]"
- name: Build Docs and Check for Warnings
run: |
# Run mkdocs build and display output
mkdocs build | tee output.log
# Check if output contains 'WARNING' or 'griffe'
if grep -Eq "WARNING|griffe" output.log; then
echo "Warnings detected, failing the build."
exit 1
fi
shell: bash