2020-01-18 12:24:33 +00:00
|
|
|
# GitHub Action to automate the identification of common misspellings in text files
|
|
|
|
# https://github.com/codespell-project/codespell
|
|
|
|
name: codespell
|
|
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
|
|
codespell:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
2020-05-16 06:49:56 +00:00
|
|
|
- uses: actions/setup-python@v2
|
2020-10-14 11:32:47 +00:00
|
|
|
- run: pip install codespell
|
2020-01-18 12:24:33 +00:00
|
|
|
- run: |
|
2020-01-23 16:21:51 +00:00
|
|
|
SKIP="./.*,./other/dictionary.txt,./other/words,./project_euler/problem_22/p022_names.txt"
|
2020-09-29 16:04:55 +00:00
|
|
|
codespell --ignore-words-list=ans,fo,followings,hist,iff,secant,som,tim --skip=$SKIP --quiet-level=2
|
2020-06-08 12:11:01 +00:00
|
|
|
- name: Codespell comment
|
2020-07-06 03:18:18 +00:00
|
|
|
if: ${{ failure() }}
|
|
|
|
uses: plettich/python_codespell_action@master
|