Skip to content

Commit 1206699

Browse files
koicbbatsov
authored andcommitted
Add spell checking GitHub Actions workflow
Follow up to rubocop/rubocop#10128. This PR adds spell checking GitHub Actions workflow.
1 parent a4aa353 commit 1206699

File tree

2 files changed

+36
-0
lines changed

2 files changed

+36
-0
lines changed

.github/workflows/spell_checking.yml

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Spell Checking
2+
3+
on: [pull_request]
4+
5+
jobs:
6+
codespell:
7+
name: Check spelling with codespell
8+
runs-on: ubuntu-latest
9+
strategy:
10+
matrix:
11+
python-version: [3.8]
12+
steps:
13+
- uses: actions/checkout@v2
14+
- name: Set up Python ${{ matrix.python-version }}
15+
uses: actions/setup-python@v2
16+
with:
17+
python-version: ${{ matrix.python-version }}
18+
- name: Install dependencies
19+
run: |
20+
python -m pip install --upgrade pip
21+
pip install codespell
22+
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
23+
- name: Check spelling with codespell
24+
run: codespell --ignore-words=codespell.txt || exit 1
25+
misspell:
26+
name: Check spelling with misspell
27+
runs-on: ubuntu-latest
28+
steps:
29+
- uses: actions/checkout@v2
30+
- name: Install
31+
run: wget -O - -q https://git.io/misspell | sh -s -- -b .
32+
- name: Misspell
33+
run: ./misspell -error

codespell.txt

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
revered
2+
rouge
3+
sting

0 commit comments

Comments
 (0)