Skip to content

Commit 0460d7e

Browse files
committed
use github action from spelling module
1 parent db89433 commit 0460d7e

File tree

1 file changed

+21
-15
lines changed

1 file changed

+21
-15
lines changed

.github/workflows/spellcheck.yml

Lines changed: 21 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,32 @@
11
name: spellcheck
22

3-
on: [push]
3+
on:
4+
- push
5+
- pull_request
46

57
jobs:
68
build:
7-
89
runs-on: ubuntu-latest
910

11+
strategy:
12+
fail-fast: false
13+
matrix:
14+
tox-environment:
15+
- docs
16+
- linter
17+
- pkglint
18+
- spelling
19+
1020
steps:
1121
- uses: actions/checkout@v2
12-
- name: Set up Python
13-
uses: actions/setup-python@v1
1422
with:
15-
python-version: 3.7
23+
fetch-depth: 0
24+
25+
- name: Set up Python
26+
uses: actions/setup-python@v2
27+
1628
- 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/output.txt" ]]; then cat "_build/spelling/output.txt"; fi
26-
if [[ -s "_build/spelling/output.txt" ]]; then false; fi
29+
run: python -m pip install tox
30+
31+
- name: Run
32+
run: tox -e ${{ matrix.tox-environment }}

0 commit comments

Comments
 (0)