templates: fix CI bugs found on first runner run (install deps, mock fedora-44, no heredoc EOF indent)
This commit is contained in:
@@ -19,15 +19,7 @@ jobs:
|
||||
- name: Validate XML definitions
|
||||
run: |
|
||||
if command -v xmllint >/dev/null; then
|
||||
for f in $(find . -name '*.xml'); do
|
||||
xmllint --noout "$f"
|
||||
done
|
||||
find . -name '*.xml' -exec xmllint --noout {} +
|
||||
else
|
||||
python3 - <<'EOF'
|
||||
import glob, xml.etree.ElementTree as ET
|
||||
files = glob.glob('**/*.xml', recursive=True)
|
||||
for f in files:
|
||||
ET.parse(f) # raises on malformed XML
|
||||
print(f"ok: {len(files)} XML files well-formed")
|
||||
EOF
|
||||
python3 -c "import glob, xml.etree.ElementTree as ET; [ET.parse(f) for f in glob.glob('**/*.xml', recursive=True)]"
|
||||
fi
|
||||
Reference in New Issue
Block a user