File tree Expand file tree Collapse file tree 3 files changed +46
-1
lines changed
Expand file tree Collapse file tree 3 files changed +46
-1
lines changed Original file line number Diff line number Diff line change 7575 --fail-if-regression \
7676 --fail-if-improved \
7777 --fail-if-new-news-nit
78+ - name : ' Collect HTML IDs'
79+ run : python Doc/tools/check-html-ids.py collect Doc/build/html -o Doc/build/html-ids-head.json.gz
80+ - name : ' Upload HTML IDs'
81+ uses : actions/upload-artifact@v6
82+ with :
83+ name : html-ids-head
84+ path : Doc/build/html-ids-head.json.gz
85+
86+ check-html-ids :
87+ name : ' Check for removed HTML IDs'
88+ needs : build-doc
89+ runs-on : ubuntu-latest
90+ timeout-minutes : 30
91+ steps :
92+ - name : ' Check out base commit'
93+ uses : actions/checkout@v6
94+ with :
95+ persist-credentials : false
96+ ref : ${{ github.event.pull_request.base.sha || github.event.before }}
97+ - name : ' Set up Python'
98+ uses : actions/setup-python@v6
99+ with :
100+ python-version : ' 3'
101+ cache : ' pip'
102+ cache-dependency-path : ' Doc/requirements.txt'
103+ - name : ' Install build dependencies'
104+ run : make -C Doc/ venv
105+ - name : ' Build HTML documentation'
106+ run : make -C Doc/ SPHINXOPTS="--quiet" html
107+ - name : ' Collect HTML IDs'
108+ run : python Doc/tools/check-html-ids.py collect Doc/build/html -o /tmp/html-ids-base.json.gz
109+ - name : ' Download PR base HTML IDs'
110+ uses : actions/download-artifact@v6
111+ with :
112+ name : html-ids-head
113+ path : /tmp
114+ - name : ' Check for removed HTML IDs'
115+ run : >-
116+ python Doc/tools/check-html-ids.py check
117+ /tmp/html-ids-base.json.gz /tmp/html-ids-head.json.gz
118+ --exclude-file Doc/tools/removed-html-ids.txt
78119
79120 # Run "doctest" on HEAD as new syntax doesn't exist in the latest stable release
80121 doctest :
Original file line number Diff line number Diff line change 1- from compression import gzip
1+ try :
2+ from compression import gzip
3+ except ImportError :
4+ import gzip
25import concurrent .futures
36from pathlib import Path
47import html .parser
Original file line number Diff line number Diff line change 1+ # HTML IDs excluded from the Doc/tools/check-html-ids.py check
You can’t perform that action at this time.
0 commit comments