-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
30 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: spellcheck | ||
|
||
on: [push] | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: 3.7 | ||
- name: Install dependencies | ||
run: | | ||
sudo apt update && sudo apt install -y enchant | ||
python -m pip install --upgrade setuptools | ||
python -m pip install --upgrade pyenchant sphinx-rtd-theme sphinxcontrib-spelling | ||
- name: Check spelling | ||
# show list of misspelled words | ||
run: | | ||
make spelling | ||
if [[ -s "_build/spelling/index.spelling" ]]; then cat "_build/spelling/index.spelling"; fi | ||
- name: Spelling errors fail the build | ||
# fail the build in case of any misspelled words | ||
run: | | ||
if [[ -s "_build/spelling/index.spelling" ]]; then cat "_build/spelling/index.spelling"; fi | ||
if [[ -s "_build/spelling/index.spelling" ]]; then false; fi |
This file was deleted.
Oops, something went wrong.