diff --git a/.github/workflows/ignore-words.txt b/.github/workflows/ignore-words.txt deleted file mode 100644 index ed516a0..0000000 --- a/.github/workflows/ignore-words.txt +++ /dev/null @@ -1,9 +0,0 @@ -Diba -Hav -Jibauni -Nin -Rin -Savin -fro -ore -panting \ No newline at end of file diff --git a/.github/workflows/spellcheck.yml b/.github/workflows/spellcheck.yml index bd0b4c1..d7676b1 100644 --- a/.github/workflows/spellcheck.yml +++ b/.github/workflows/spellcheck.yml @@ -1,21 +1,22 @@ -name: Spell Checking +name: Spellcheck on: [push, pull_request] +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} + cancel-in-progress: true + jobs: - codespell: - name: Check spelling with codespell + spellcheck: + name: Spelling runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 - - name: Set up Python 3.12 - uses: actions/setup-python@v4 - with: - python-version: 3.12 - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install codespell - if [ -f requirements.txt ]; then pip install -r requirements.txt; fi - - name: Check spelling with codespell - run: codespell --ignore-words=.github/workflows/ignore-words.txt || exit 1 + - uses: actions/checkout@v4 + with: + ref: ${{ github.event.pull_request.head.sha }} + show-progress: false + - uses: codespell-project/actions-codespell@master + with: + builtin: clear,en-GB_to_en-US + exclude_file: .codespell.exclude + ignore_words_file: .codespell.words.exclude