File tree Expand file tree Collapse file tree 3 files changed +31
-22
lines changed Expand file tree Collapse file tree 3 files changed +31
-22
lines changed Original file line number Diff line number Diff line change 1+ name : spellcheck
2+
3+ on : [push]
4+
5+ jobs :
6+ build :
7+
8+ runs-on : ubuntu-latest
9+
10+ steps :
11+ - uses : actions/checkout@v2
12+ - name : Set up Python
13+ uses : actions/setup-python@v1
14+ with :
15+ python-version : 3.7
16+ - name : Install dependencies
17+ run : |
18+ sudo apt update && sudo apt install -y enchant
19+ python -m pip install --upgrade setuptools
20+ python -m pip install --upgrade pyenchant sphinx-rtd-theme sphinxcontrib-spelling
21+ - name : Check spelling
22+ # show list of misspelled words
23+ run : |
24+ make spelling
25+ if [[ -s "_build/spelling/index.spelling" ]]; then cat "_build/spelling/index.spelling"; fi
26+ - name : Spelling errors fail the build
27+ # fail the build in case of any misspelled words
28+ run : |
29+ if [[ -s "_build/spelling/index.spelling" ]]; then cat "_build/spelling/index.spelling"; fi
30+ if [[ -s "_build/spelling/index.spelling" ]]; then false; fi
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 22
33# You can set these variables from the command line.
44SPHINXOPTS =
5- SPHINXBUILD = pipenv run sphinx-build
5+ SPHINXBUILD = sphinx-build
66PAPER =
77BUILDDIR = _build
88
You can’t perform that action at this time.
0 commit comments