Skip to content

Commit

Permalink
move spellcheck to github action
Browse files Browse the repository at this point in the history
  • Loading branch information
dbu committed Sep 18, 2021
1 parent 47d1831 commit 9cbc11f
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 22 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/spellcheck.yml
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
21 changes: 0 additions & 21 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# You can set these variables from the command line.
SPHINXOPTS =
SPHINXBUILD = pipenv run sphinx-build
SPHINXBUILD = sphinx-build
PAPER =
BUILDDIR = _build

Expand Down

0 comments on commit 9cbc11f

Please sign in to comment.