mirror of
https://github.com/brunopostle/simple-ifc.git
synced 2026-03-29 22:43:17 +02:00
Exclude libraries/ folder from CI validation workflows
This commit is contained in:
parent
89607910ea
commit
7ce4cc7eb9
2 changed files with 6 additions and 1 deletions
6
.github/workflows/ids-lint.yml
vendored
6
.github/workflows/ids-lint.yml
vendored
|
|
@ -40,7 +40,11 @@ jobs:
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
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
|
if [ ${#ifc_files[@]} -eq 0 ]; then
|
||||||
echo "No IFC files found"
|
echo "No IFC files found"
|
||||||
|
|
|
||||||
1
.github/workflows/ifc-lint.yml
vendored
1
.github/workflows/ifc-lint.yml
vendored
|
|
@ -27,6 +27,7 @@ jobs:
|
||||||
set -e
|
set -e
|
||||||
shopt -s globstar nullglob
|
shopt -s globstar nullglob
|
||||||
for file in **/*.ifc; do
|
for file in **/*.ifc; do
|
||||||
|
[[ "$file" == libraries/* ]] && continue
|
||||||
echo "Validating $file..."
|
echo "Validating $file..."
|
||||||
python3 -m ifcopenshell.validate --rules "$file"
|
python3 -m ifcopenshell.validate --rules "$file"
|
||||||
done
|
done
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue