templates: fix CI bugs found on first runner run (install deps, mock fedora-44, no heredoc EOF indent)

This commit is contained in:
Lukas Greve
2026-09-19 14:08:11 +02:00
parent 81a78faf42
commit 3f08ef654a
2 changed files with 4 additions and 10 deletions
+2
View File
@@ -17,6 +17,8 @@ jobs:
- uses: https://git.phyllo.me/devops/checkout@v5 - uses: https://git.phyllo.me/devops/checkout@v5
with: with:
fetch-depth: 0 fetch-depth: 0
- name: Install Python deps
run: pip install -r cook/requirements.txt
- name: Lint manifest + templates - name: Lint manifest + templates
run: make -C cook lint run: make -C cook lint
- name: Generate recipes + dishes, validate every dish - name: Generate recipes + dishes, validate every dish
+2 -10
View File
@@ -19,15 +19,7 @@ jobs:
- name: Validate XML definitions - name: Validate XML definitions
run: | run: |
if command -v xmllint >/dev/null; then if command -v xmllint >/dev/null; then
for f in $(find . -name '*.xml'); do find . -name '*.xml' -exec xmllint --noout {} +
xmllint --noout "$f"
done
else else
python3 - <<'EOF' python3 -c "import glob, xml.etree.ElementTree as ET; [ET.parse(f) for f in glob.glob('**/*.xml', recursive=True)]"
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
fi fi