| 1 |
name: Check spelling in documentation |
| 2 |
|
| 3 |
on: [push, pull_request] |
| 4 |
|
| 5 |
permissions: |
| 6 |
contents: read |
| 7 |
|
| 8 |
jobs: |
| 9 |
spellcheck: |
| 10 |
runs-on: ubuntu-latest |
| 11 |
steps: |
| 12 |
- uses: actions/checkout@v7 |
| 13 |
- name: Set up Python ${{ matrix.python-version }} |
| 14 |
uses: actions/setup-python@v7 |
| 15 |
with: |
| 16 |
python-version: "3.10" |
| 17 |
- uses: actions/cache@v6 |
| 18 |
name: Configure pip caching |
| 19 |
with: |
| 20 |
path: ~/.cache/pip |
| 21 |
key: ${{ runner.os }}-pip-${{ hashFiles('**/setup.py') }} |
| 22 |
restore-keys: | |
| 23 |
${{ runner.os }}-pip- |
| 24 |
- name: Install dependencies |
| 25 |
run: | |
| 26 |
pip install -e '.[docs]' |
| 27 |
- name: Check spelling |
| 28 |
run: | |
| 29 |
codespell docs/*.rst --ignore-words docs/codespell-ignore-words.txt |
| 30 |
codespell datasette -S datasette/static -S datasette/vendored --ignore-words docs/codespell-ignore-words.txt |