Skip to content

Fix some issues that were causing build failures/warnings with the CI… #67

Fix some issues that were causing build failures/warnings with the CI…

Fix some issues that were causing build failures/warnings with the CI… #67

Workflow file for this run

name: colcon.readthedocs.org
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.11
- name: Install dependencies
run: |
sudo apt update && sudo apt install -y enchant-2 graphviz
python -m pip install --upgrade setuptools
python -m pip install --upgrade doc8 pyenchant sphinx-rtd-theme sphinxcontrib-spelling
- name: Check spelling
# show list of misspelled words
run: |
mkdir _build
make spelling
if [[ -s "_build/spelling/index.spelling" ]]; then cat "_build/spelling/index.spelling"; fi
- name: Build documentation
run: |
make html
- name: Lint generated documentation
run: |
doc8 --max-line-length 999 index.rst developer/ migration/ user/ -v
- name: Warnings and spelling errors fail the build
run: |
if [[ -s "_build/warnings_and_errors.log" ]]; then cat "_build/warnings_and_errors.log"; fi
if [[ -s "_build/spelling/index.spelling" ]]; then cat "_build/spelling/index.spelling"; fi
if [[ -s "_build/warnings_and_errors.log" ]]; then false; fi
if [[ -s "_build/spelling/index.spelling" ]]; then false; fi