GHA: bump pyspelling from 2.11 to 2.12.1 (#529) #43
This file contains hidden or 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
| # Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al. | |
| # | |
| # SPDX-License-Identifier: curl | |
| name: pyspelling | |
| 'on': | |
| push: | |
| branches: | |
| - master | |
| paths: | |
| - '*.md' | |
| - '*/*.md' | |
| - '**/requirements*' | |
| - '**/pyspelling.yml' | |
| - '**/pyspelling.yaml' | |
| - '**/wordlist.txt' | |
| pull_request: | |
| branches: | |
| - master | |
| paths: | |
| - '*.md' | |
| - '*/*.md' | |
| - '**/requirements*' | |
| - '**/pyspelling.yml' | |
| - '**/pyspelling.yaml' | |
| - '**/wordlist.txt' | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }} | |
| cancel-in-progress: true | |
| permissions: {} | |
| jobs: | |
| pyspelling: | |
| name: 'pyspelling' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 | |
| with: | |
| persist-credentials: false | |
| - name: strip "uncheckable" sections from .md pages | |
| run: find docs -name '*.md' -print0 | xargs -0 -t -n1 .github/scripts/cleanspell.pl | |
| - name: 'install' | |
| run: | | |
| sudo rm -f /etc/apt/sources.list.d/microsoft-prod.list | |
| sudo apt-get -o Dpkg::Use-Pty=0 update | |
| sudo rm -f /var/lib/man-db/auto-update | |
| sudo apt-get -o Dpkg::Use-Pty=0 install aspell aspell-en | |
| python3 -m venv ~/venv | |
| ~/venv/bin/pip --disable-pip-version-check --no-input --no-cache-dir install --progress-bar off --prefer-binary -r .github/scripts/requirements-docs.txt | |
| - name: 'check spelling' | |
| run: | | |
| source ~/venv/bin/activate | |
| # setup the custom wordlist | |
| grep -v '^#' .github/scripts/pyspelling.words > wordlist.txt | |
| aspell --version | |
| pyspelling --version | |
| pyspelling --verbose --jobs 5 --config .github/scripts/pyspelling.yaml |