Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 17 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,18 @@ on:

jobs:

check-trailing-spaces:
runs-on: ubuntu-latest
steps:

- uses: actions/checkout@v7

- name: Check for trailing spaces
run: |
! grep -rIn ' $' --include="*.c" --include="*.h" --include="*.xml" \
--include="*.yml" --include="*.txt" --include="*.py" \
--include="*.cmake" --include="*.html" .

lint-files:
runs-on: ubuntu-latest
steps:
Expand Down Expand Up @@ -38,7 +50,7 @@ jobs:
image: macos-14
arch: aarch64
runs-on: ${{ matrix.image }}
needs: lint-files
needs: [check-trailing-spaces, lint-files]
steps:
- uses: actions/checkout@v7
- uses: actions/setup-python@v6
Expand Down Expand Up @@ -67,7 +79,7 @@ jobs:
- name: Install fmusim
run: |
curl -LsSf https://raw.githubusercontent.com/modelica/fmusim/refs/heads/main/install.sh | sh

- name: Set up Python
uses: actions/setup-python@v6
with:
Expand All @@ -77,14 +89,14 @@ jobs:
run: |
python -m pip install --upgrade pip
python -m pip install fmpy==0.3.20 pytest scipy kaleido markdown2 plotly pytz

- uses: actions/checkout@v7

- uses: actions/download-artifact@v8
with:
name: x86-windows
path: dist-x86-windows

- uses: actions/download-artifact@v8
with:
name: x86_64-windows
Expand Down
1 change: 0 additions & 1 deletion playground/validate_fmus.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,3 @@
if file.endswith(".fmu"):
fmu_path = os.path.join(root, file)
out = subprocess.check_output(["fmusim", "validate", fmu_path])

Loading