chore: it's 2025 #102
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
| name: "Check Spelling" | |
| on: | |
| push: | |
| branches: ["**"] | |
| tags-ignore: ["**"] | |
| pull_request: | |
| env: | |
| PYTHON_VERSION: "3.13" | |
| jobs: | |
| check-spelling: | |
| # Only run on PRs if the source branch is on someone else's repo | |
| if: "${{ github.event_name != 'pull_request' || github.repository != github.event.pull_request.head.repo.full_name }}" | |
| runs-on: "ubuntu-latest" | |
| steps: | |
| - uses: "actions/checkout@v4" | |
| - name: "setup python / install poetry" | |
| run: "pipx install poetry" | |
| - name: "setup python ${{ env.PYTHON_VERSION }}" | |
| uses: "actions/setup-python@v5" | |
| with: | |
| python-version: "${{ env.PYTHON_VERSION }}" | |
| cache: "poetry" | |
| - name: "setup python / dependencies" | |
| run: "poetry sync" | |
| - name: "setup python / spelling problem matcher" | |
| run: | | |
| echo "::add-matcher::.github/sphinx-spelling-matcher.json" | |
| - name: "run spellcheck" | |
| run: | | |
| poetry run make spelling | |