Skip to content

Add codespell workflow #1

Add codespell workflow

Add codespell workflow #1

Workflow file for this run

# A Github action that using codespell to check spell.
# .codespell/.codespellrc is a config file.
# .codespell/wordlist.txt is a list of words that will ignore word checks.
# More details please check the following link:
# https://github.com/codespell-project/codespell
name: Codespell
on: pull_request
jobs:
codespell:
runs-on: ubuntu-latest
steps:
- name: Checkout the repository
uses: actions/checkout@v4
- name: pip cache
uses: actions/cache@v4
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/*.py') }}
restore-keys: ${{ runner.os }}-pip-
- name: Install Codespell
run: sudo pip install codespell==2.2.5
- name: Spell check
run: codespell --config=./.codespell/.codespellrc