Gh workflow for spelling errors (#265)

* Gh workflow for spelling errors

* add files to check
This commit is contained in:
Sebastian Raschka
2024-07-16 06:17:20 -07:00
committed by GitHub
parent 48bd72c890
commit 45d0318ae6
2 changed files with 30 additions and 17 deletions

View File

@@ -0,0 +1,30 @@
name: Spell Check
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
spellcheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Install codespell
run: |
python -m pip install --upgrade pip
pip install codespell
- name: Run codespell
run: |
codespell -L "ocassion,occassion,ot,te,tje" **/*.{txt,md,py,ipynb}