[mod] py3.8 EOL / upgrade to actions/setup-python@v5

Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
This commit is contained in:
Markus Heiser 2024-10-02 17:08:07 +02:00 committed by Markus Heiser
parent e7a4d7d7c3
commit 2fd6730d4f
5 changed files with 21 additions and 28 deletions

View file

@ -93,13 +93,8 @@ test.robot() {
test.rst() {
build_msg TEST "[reST markup] ${RST_FILES[*]}"
local rst2html=rst2html
if [ "3.8" == "$(python -c 'import sys; print(".".join([str(x) for x in sys.version_info[:2]]))')" ]; then
rst2html=rst2html.py
fi
for rst in "${RST_FILES[@]}"; do
pyenv.cmd "${rst2html}" --halt error "$rst" > /dev/null || die 42 "fix issue in $rst"
pyenv.cmd rst2html --halt error "$rst" > /dev/null || die 42 "fix issue in $rst"
done
}