Exclude libraries/ folder from CI validation workflows

This commit is contained in:
Bruno Postle 2026-03-01 20:32:56 +00:00
parent 89607910ea
commit 7ce4cc7eb9
2 changed files with 6 additions and 1 deletions

View file

@ -40,7 +40,11 @@ jobs:
exit 0
fi
ifc_files=(**/*.ifc)
all_ifc=(**/*.ifc)
ifc_files=()
for f in "${all_ifc[@]}"; do
[[ "$f" == libraries/* ]] || ifc_files+=("$f")
done
if [ ${#ifc_files[@]} -eq 0 ]; then
echo "No IFC files found"

View file

@ -27,6 +27,7 @@ jobs:
set -e
shopt -s globstar nullglob
for file in **/*.ifc; do
[[ "$file" == libraries/* ]] && continue
echo "Validating $file..."
python3 -m ifcopenshell.validate --rules "$file"
done