mirror of
https://github.com/brunopostle/simple-ifc.git
synced 2026-03-30 06:53:18 +02:00
32 lines
658 B
YAML
32 lines
658 B
YAML
name: IFC Validation
|
|
|
|
on:
|
|
push:
|
|
pull_request:
|
|
|
|
jobs:
|
|
lint-ifc:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Set up Python
|
|
uses: actions/setup-python@v4
|
|
with:
|
|
python-version: '3.x'
|
|
|
|
- name: Install ifcopenshell
|
|
run: |
|
|
pip install pytest
|
|
pip install ifcopenshell
|
|
|
|
- name: Run IFC lint checks
|
|
run: |
|
|
set -e
|
|
shopt -s globstar nullglob
|
|
for file in **/*.ifc; do
|
|
echo "Validating $file..."
|
|
python3 -m ifcopenshell.validate --rules "$file"
|
|
done
|