Skip to content

Commit

Permalink
use github action from spelling module
Browse files Browse the repository at this point in the history
  • Loading branch information
dbu committed Sep 18, 2021
1 parent db89433 commit 0460d7e
Showing 1 changed file with 21 additions and 15 deletions.
36 changes: 21 additions & 15 deletions .github/workflows/spellcheck.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,32 @@
name: spellcheck

on: [push]
on:
- push
- pull_request

jobs:
build:

runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
tox-environment:
- docs
- linter
- pkglint
- spelling

steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: 3.7
fetch-depth: 0

- name: Set up Python
uses: actions/setup-python@v2

- 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/output.txt" ]]; then cat "_build/spelling/output.txt"; fi
if [[ -s "_build/spelling/output.txt" ]]; then false; fi
run: python -m pip install tox

- name: Run
run: tox -e ${{ matrix.tox-environment }}

0 comments on commit 0460d7e

Please sign in to comment.