Skip to content

Suppress caching warning in ci workflow #4

Suppress caching warning in ci workflow

Suppress caching warning in ci workflow #4

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