fix: install python yaml module for YAML validation
All checks were successful
Syntax Check / syntax-check (push) Successful in 6s

This commit is contained in:
2026-02-11 05:20:52 +00:00
parent 624f0d2f32
commit 9af565c700

View File

@@ -52,5 +52,10 @@ jobs:
- name: Validate YAML configuration - name: Validate YAML configuration
run: | run: |
echo "Checking YAML files..." echo "Checking YAML files..."
if command -v apk >/dev/null 2>&1; then
apk add --no-cache py3-yaml
elif command -v apt-get >/dev/null 2>&1; then
apt-get update && apt-get install -y python3-yaml
fi
python3 -c "import yaml; yaml.safe_load(open('bitbucket-pipelines.yml'))" python3 -c "import yaml; yaml.safe_load(open('bitbucket-pipelines.yml'))"
python3 -c "import yaml; yaml.safe_load(open('.gitea/workflows/syntax-check.yml'))" python3 -c "import yaml; yaml.safe_load(open('.gitea/workflows/syntax-check.yml'))"