-
Notifications
You must be signed in to change notification settings - Fork 6
39 lines (34 loc) · 1.13 KB
/
spellcheck.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: Spell Checking
on:
pull_request:
branches:
- "**"
jobs:
spellcheck:
name: Check Spelling with custom Python script
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.9]
steps:
# Step 1: Checkout the code
- name: Checkout code
uses: actions/checkout@v2
# Step 2: Set up Python
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
# Step 3: Install dependencies
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y aspell aspell-en # Install aspell and the English dictionary
python -m pip install --upgrade pip
pip install spacy markdown-it-py pyspellchecker
python -m spacy download en_core_web_sm # Install spaCy language model
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
# Step 4: Run the custom Python spell-checking script
- name: Run spell-check script
run: |
python .github/spelling/check_spelling.py || exit 1