Bump pyarrow from 24.0.0 to 25.0.0 in /.github/build/python (#141) #20
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
| on: | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - '.github/workflows/doc-check.yml' | |
| - '.github/build/scripts/compare-signatures.py' | |
| - '.github/build/python/requirements.txt' | |
| - 'docs/magick\+\+/**' | |
| pull_request: | |
| branches: | |
| - main | |
| paths: | |
| - '.github/workflows/doc-check.yml' | |
| - '.github/build/scripts/compare-signatures.py' | |
| - '.github/build/python/requirements.txt' | |
| - 'docs/magick\+\+/**' | |
| workflow_dispatch: | |
| schedule: | |
| - cron: 0 6 * * 1 | |
| permissions: | |
| contents: read | |
| name: Documentation check for Magick++ | |
| jobs: | |
| doxygen-check: | |
| name: Documentation check | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 #v7.0.1 | |
| with: | |
| persist-credentials: false | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 #v7.0.1 | |
| with: | |
| repository: ImageMagick/ImageMagick | |
| path: ImageMagick | |
| persist-credentials: false | |
| - uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 #v7.0.0 | |
| with: | |
| python-version: 3.14 | |
| - name: Install Python dependencies | |
| run: python -m pip install --user -r .github/build/python/requirements.txt --require-hashes | |
| - name: Install Doxygen | |
| run: sudo apt-get update && sudo apt-get install -y doxygen | |
| - name: Generate Magick++ documentation | |
| run: | | |
| # Magick++.dox.in is an autoconf template; substitute the placeholders normally filled in by `configure` | |
| cd ImageMagick/config | |
| sed -e 's/@srcdir@/./g' -e 's/@PACKAGE_VERSION@/0.0.0/g' Magick++.dox.in > Magick++.dox | |
| echo "WARN_IF_UNDOCUMENTED = NO" >> Magick++.dox | |
| doxygen Magick++.dox | |
| - name: Upload generated documentation | |
| uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a #v7.0.1 | |
| with: | |
| name: magick++-doxygen-html | |
| path: ImageMagick/www/api/Magick++ | |
| - name: Compare documentation | |
| run: | | |
| diff="" | |
| # documentation files with function signatures that we can compare with their corresponding doxygen file (currently) | |
| DOC_HTML=("Blob.html" "CoderInfo.html" "Geometry.html" "Image++.html" "Montage.html" "Pixels.html") | |
| DOXY_HTML=("Blob.html" "CoderInfo.html" "Geometry.html" "Image.html" "Montage.html" "Pixels.html") # Image.html is the only one that differs from the doxygen file | |
| for i in "${!DOC_HTML[@]}"; do | |
| if ! python3 .github/build/scripts/compare-signatures.py docs/magick++/"${DOC_HTML[$i]}" ImageMagick/www/api/Magick++/classMagick_1_1"${DOXY_HTML[$i]}"; then | |
| diff="true" | |
| fi | |
| done | |
| if [ -n "$diff" ]; then | |
| echo "Mismatches detected!" && exit 1 | |
| fi | |
| exit 0 | |