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 593faf8
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 21 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.

0 comments on commit 593faf8

Please sign in to comment.