Skip to content

Add test for building docs #2

Add test for building docs

Add test for building docs #2

name: Test build documentation
on:
push:
branches:
- main
- develop
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
branches:
- main
- develop
jobs:
test-build-docs:
if: github.event.pull_request.draft == false
name: Test documentation build
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: ["ubuntu-latest"]
python-version: ["3.10"]
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Upgrade pip and install dependencies
run: |
python3 -m pip install --upgrade pip setuptools
python3 -m pip install .[docs]
- name: Build documentation
run: mkdocs build