kopia lustrzana https://github.com/simonw/datasette
32 wiersze
906 B
YAML
32 wiersze
906 B
YAML
name: Check spelling in documentation
|
|
|
|
on: [push, pull_request]
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
spellcheck:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Set up Python ${{ matrix.python-version }}
|
|
uses: actions/setup-python@v2
|
|
with:
|
|
python-version: 3.9
|
|
- uses: actions/cache@v2
|
|
name: Configure pip caching
|
|
with:
|
|
path: ~/.cache/pip
|
|
key: ${{ runner.os }}-pip-${{ hashFiles('**/setup.py') }}
|
|
restore-keys: |
|
|
${{ runner.os }}-pip-
|
|
- name: Install dependencies
|
|
run: |
|
|
pip install -e '.[docs]'
|
|
- name: Check spelling
|
|
run: |
|
|
codespell README.md --ignore-words docs/codespell-ignore-words.txt
|
|
codespell docs/*.rst --ignore-words docs/codespell-ignore-words.txt
|
|
codespell datasette -S datasette/static --ignore-words docs/codespell-ignore-words.txt
|