mirror of
https://github.com/micropython/micropython.git
synced 2026-01-15 08:27:15 +01:00
"MicroPython" is sometimes misspelled as "Micropython". Add an explicit check for that as part of CI (note that codespell doesn't consider case when spelling, hence the need to do it this way). Signed-off-by: Damien George <damien@micropython.org>
19 lines
573 B
YAML
19 lines
573 B
YAML
name: Check spelling with codespell
|
|
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
codespell:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v6
|
|
# codespell version should be kept in sync with .pre-commit-config.yml
|
|
- run: pip install --user codespell==2.4.1 tomli
|
|
- run: codespell
|
|
# additionally check for misspelling of "MicroPython"
|
|
- run: |
|
|
if git grep -n Micropython -- ":(exclude).github/workflows/codespell.yml"; then
|
|
echo "Please correct capitalisation of MicroPython on the above lines"
|
|
exit 1
|
|
fi
|