Add rstcheck to CI to lint docs
This commit is contained in:
committed by
Adrien Vergé
parent
c268a82c5a
commit
e49a101160
5
.github/workflows/ci.yaml
vendored
5
.github/workflows/ci.yaml
vendored
@@ -17,10 +17,13 @@ jobs:
|
||||
uses: actions/checkout@v2
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v2
|
||||
- run: python -m pip install flake8 flake8-import-order doc8 sphinx
|
||||
- run:
|
||||
python -m pip install flake8 flake8-import-order doc8 sphinx
|
||||
rstcheck[sphinx]
|
||||
- run: python -m pip install .
|
||||
- run: flake8 .
|
||||
- run: doc8 $(git ls-files '*.rst')
|
||||
- run: rstcheck --ignore-directives automodule $(git ls-files '*.rst')
|
||||
- run: yamllint --strict $(git ls-files '*.yaml' '*.yml')
|
||||
- run: python setup.py build_sphinx
|
||||
|
||||
|
||||
Reference in New Issue
Block a user