Skip to content

Commit

Permalink
Install/run codespell "manually"
Browse files Browse the repository at this point in the history
Action does not yet allow for --config option to be
passed
  codespell-project/actions-codespell#67
  • Loading branch information
yarikoptic committed May 18, 2023
1 parent 9af79ab commit a83fe03
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/codespell.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,19 @@ on:

jobs:
codespell:
name: Check for spelling errors
name: Check for typos
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v3
- name: Codespell
uses: codespell-project/actions-codespell@v2
# codespell github action does not yet allow for --config option
# https://github.com/codespell-project/actions-codespell/issues/67
# so we need to install and invoke "manually"
- name: Set up Python
uses: actions/setup-python@v4
- name: Install codespell
run: |
python -m pip install codespell
- name: Run codespell
run: codespell --config src/tools/codespellrc

0 comments on commit a83fe03

Please sign in to comment.