2021-08-03 16:36:38 +00:00
|
|
|
name: Check spelling in documentation
|
|
|
|
|
|
|
|
on: [push, pull_request]
|
|
|
|
|
2022-05-31 19:28:40 +00:00
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
|
2021-08-03 16:36:38 +00:00
|
|
|
jobs:
|
|
|
|
spellcheck:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2023-10-08 16:09:45 +00:00
|
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Set up Python
|
|
|
|
uses: actions/setup-python@v4
|
2021-08-03 16:36:38 +00:00
|
|
|
with:
|
2023-10-08 16:09:45 +00:00
|
|
|
python-version: '3.11'
|
|
|
|
cache: 'pip'
|
|
|
|
cache-dependency-path: '**/setup.py'
|
2021-08-03 16:36:38 +00:00
|
|
|
- name: Install dependencies
|
|
|
|
run: |
|
|
|
|
pip install -e '.[docs]'
|
|
|
|
- name: Check spelling
|
2021-08-03 17:03:08 +00:00
|
|
|
run: |
|
2023-06-29 14:43:01 +00:00
|
|
|
codespell README.md --ignore-words docs/codespell-ignore-words.txt
|
2021-08-03 17:03:08 +00:00
|
|
|
codespell docs/*.rst --ignore-words docs/codespell-ignore-words.txt
|
|
|
|
codespell datasette -S datasette/static --ignore-words docs/codespell-ignore-words.txt
|
2024-02-19 22:41:32 +00:00
|
|
|
codespell tests --ignore-words docs/codespell-ignore-words.txt
|