0xmovses/merge upstream june 2 #8
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# A Github action that using codespell to check spelling. | |
# see .codespell/* for configs | |
# https://github.com/codespell-project/codespell | |
name: codespell | |
on: | |
# Triggers the workflow on push or pull request against main | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
jobs: | |
codespell: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout the repository | |
uses: actions/checkout@v4 | |
- name: pip cache | |
uses: actions/cache@v4 | |
with: | |
path: ~/.cache/pip | |
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }} | |
restore-keys: ${{ runner.os }}-pip- | |
- name: Install prerequisites | |
run: sudo pip install -r ./.codespell/requirements.txt | |
- name: Spell check | |
run: codespell --config=./.codespell/.codespellrc |