Update docs.yml to cpu-latest runner (#23904)

Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com>
This commit is contained in:
Glenn Jocher 2026-03-14 14:36:52 +01:00 committed by GitHub
parent 05fef01f65
commit 63168d89be
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -32,7 +32,7 @@ permissions:
jobs:
Docs:
if: github.repository == 'ultralytics/ultralytics'
runs-on: ubuntu-latest
runs-on: cpu-latest
env:
GITHUB_REF: ${{ github.head_ref || github.ref }}
steps:
@ -44,13 +44,14 @@ jobs:
token: ${{ secrets._GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
ref: ${{ env.GITHUB_REF }}
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: "3.x"
- uses: astral-sh/setup-uv@v7
with:
python-version: "3.14"
- name: Install Dependencies
run: uv pip install --system -e ".[dev]" ruff --extra-index-url https://download.pytorch.org/whl/cpu
run: |
uv venv
echo "$PWD/.venv/bin" >> $GITHUB_PATH
uv pip install -e ".[dev]" ruff --extra-index-url https://download.pytorch.org/whl/cpu
- name: Ruff fixes
continue-on-error: true
run: |