Debian Codegraph @

.github/workflows/doc-check.yml

raw symbols SCIP
1 on:
2 push:
3 branches:
4 - main
5 paths:
6 - '.github/workflows/doc-check.yml'
7 pull_request:
8 branches:
9 - main
10 paths:
11 - '.github/workflows/doc-check.yml'
12 workflow_dispatch:
13 schedule:
14 - cron: 0 6 * * 1
15
16 permissions:
17 contents: read
18
19 name: Documentation check for Magick++
20 jobs:
21 doxygen-check:
22 name: Documentation check
23 runs-on: ubuntu-24.04
24
25 steps:
26 - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 #v7.0.1
27 with:
28 persist-credentials: false
29
30 - uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 #v6.3.0
31 with:
32 python-version: 3.14
33
34 - name: Install Python dependencies
35 run: python -m pip install --user -r .github/build/python/requirements.txt --require-hashes
36
37 - name: Install Doxygen
38 run: sudo apt-get update && sudo apt-get install -y doxygen
39
40 - name: Compare documentation
41 run: |
42 diff=""
43 # first generate the Magick++ documentation to be up to date with the current code
44 cd config && doxygen Magick++.dox.in &> /dev/null
45 cd ..
46
47 # documentation files with function signatures that we can compare with their corresponding doxygen file (currently)
48 DOC_HTML=("Blob.html" "CoderInfo.html" "Geometry.html" "Image++.html" "Montage.html" "Pixels.html")
49 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
50 for i in "${!DOC_HTML[@]}"; do
51 python3 .github/build/scripts/compare-signatures.py www/Magick++/"${DOC_HTML[$i]}" www/api/Magick++/classMagick_1_1"${DOXY_HTML[$i]}"
52 if [ $? -eq -1 ]; then
53 diff="true"
54 fi
55 done
56
57 if [ -n "$diff" ]; then
58 echo "Mismatches detected!" && exit 1
59 fi
60 exit 0
61