name: Codespell Check on: push: branches-ignore: - 'main' pull_request: ~ concurrency: group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} cancel-in-progress: true jobs: linux: runs-on: ubuntu-latest name: "CI Codespell" steps: - name: 'Check Out' uses: actions/checkout@v6 - name: 'Install codespell' run: | sudo apt-get update sudo apt-get install -y --no-install-recommends \ autoconf automake libtool pkg-config \ libgeos-dev libproj-dev libxml2-dev \ libxml2-utils docbook-xml docbook-xsl docbook-xsl-ns xsltproc \ python3-venv # Ubuntu's packaged codespell is too old for the skip globs in .codespellrc, # which makes the job scan generated/vendor trees and fail noisily. python3 -m venv "${RUNNER_TEMP}/codespell-venv" "${RUNNER_TEMP}/codespell-venv/bin/python" -m pip install 'codespell==2.4.1' - name: 'Build & Test' run: | export PATH="${RUNNER_TEMP}/codespell-venv/bin:${PATH}" codespell --version ./autogen.sh ./configure --without-raster --without-topology --without-sfcgal --without-json --without-protobuf make -C doc comments codespell --config .codespellrc .