* Add push triggers for `main` and `develop` branches in workflow files * Add conditional concurrency cancellation for PR vs push events (#2035) --------- Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com>
44 lines
1.1 KiB
YAML
44 lines
1.1 KiB
YAML
name: 🧪 Docs Test WorkFlow 📚
|
|
|
|
on:
|
|
push:
|
|
branches: [main, develop]
|
|
pull_request:
|
|
branches: [main, develop]
|
|
|
|
concurrency:
|
|
group: docs-test-${{ github.ref }}
|
|
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
|
|
|
|
# Restrict permissions by default
|
|
permissions:
|
|
contents: read # Required for checkout
|
|
checks: write # Required for test reporting
|
|
|
|
jobs:
|
|
docs-build-test:
|
|
name: Test docs build
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 10
|
|
strategy:
|
|
matrix:
|
|
python-version: ["3.10"]
|
|
steps:
|
|
- name: 📥 Checkout the repository
|
|
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: 🐍 Install uv and set Python ${{ matrix.python-version }}
|
|
uses: astral-sh/setup-uv@681c641aba71e4a1c380be3ab5e12ad51f415867 # v7.1.6
|
|
with:
|
|
python-version: ${{ matrix.python-version }}
|
|
activate-environment: true
|
|
|
|
- name: 🏗️ Install dependencies
|
|
run: |
|
|
uv pip install -r pyproject.toml --group docs
|
|
|
|
- name: 🧪 Test Docs Build
|
|
run: uv run mkdocs build --verbose
|