add strict mkdocs check (#5497)

This commit is contained in:
Alessandro Benetti 2024-07-15 23:21:37 +02:00 committed by GitHub
parent 8dfd11c1d8
commit 13e200b437
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 1 deletions

View File

@ -26,4 +26,5 @@ jobs:
restore-keys: |
mkdocs-material-
- run: pip install -e .[docs]
- run: mkdocs build --strict
- run: mkdocs gh-deploy --force

View File

@ -79,7 +79,7 @@ jobs:
path: ${{ env.Python3_ROOT_DIR }}/lib/python3.8/site-packages
key: linting-packages-${{ hashFiles('**/setup.py') }}-3.8
- name: Install dependencies
run: pip install -e '.[linting,testing]' --extra-index-url https://download.pytorch.org/whl/cpu
run: pip install -e '.[linting,testing,docs]' --extra-index-url https://download.pytorch.org/whl/cpu
- name: Lint with pylint
run: python -m pylint --disable=all -e W0311 -e C0303 --jobs=0 --indent-string=' ' **/*.py
- name: Lint with ruff
@ -94,6 +94,8 @@ jobs:
run: |
python docs/abstractions2.py
python docs/abstractions3.py
- name: Test Docs Build
run: mkdocs build --strict
- name: Test Quickstart
run: awk '/```python/{flag=1;next}/```/{flag=0}flag' docs/quickstart.md > quickstart.py && PYTHONPATH=. python quickstart.py
- name: Test README