fix: Add a spellcheck and fix various typos (#50) #4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Spell Checking | |
on: [push, pull_request] | |
jobs: | |
codespell: | |
name: Check spelling with codespell | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python 3.12 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.12 | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install codespell | |
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi | |
- name: Check spelling with codespell | |
run: codespell --ignore-words=.github/workflows/ignore-words.txt || exit 1 |