Skip to content

Use codespell

Use codespell #292

Workflow file for this run

# yaml-language-server: $schema=https://json.schemastore.org/github-workflow
name: "Spelling"
# I take care of your fat fingers and ESL mistakes.
on: # yamllint disable-line rule:truthy
pull_request: null
push:
branches:
- "master"
workflow_call: null
permissions: {} # yamllint disable-line rule:braces
#permissions: "read-all"
#permissions:
# contents: "read" # Private repositories need read permission
concurrency:
group: "${{ github.workflow }}-${{ github.ref }}"
cancel-in-progress: true
jobs:
typos_check:
name: "文A Typos"
runs-on: "ubuntu-22.04"
timeout-minutes: 1
steps:
-
name: "Checkout repository"
uses: "actions/[email protected]"
-
name: "Cache pip"
uses: "actions/cache@v3"
with:
path: "~/.cache/pip"
key: "${{ runner.os }}-pip-codespell"
-
name: "Install codespell"
run: |
pip install --user 'codespell>=2.2'
-
name: "Search for misspellings"
run: |
python -m codespell_lib