Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
aea9da5
add workflow to run unittests in ./tests
syntron Feb 8, 2026
c4ac6df
tests from v4.0.0
syntron Feb 5, 2026
ab81257
fix test_linearization from v4.0.0
syntron Feb 5, 2026
dbb5de1
fix test_ModelicaSystem - needed adaptions:
syntron Feb 5, 2026
0456f26
define test workflows for v400
syntron Feb 8, 2026
a45ebac
update docstring of __init__.py - do not promote depreciated OMCSessi…
syntron Jan 9, 2026
d562870
reorder imports in __init__.py
syntron Nov 8, 2025
f48f0bf
[OMCSession] use function keyword arguments if possible
syntron Jan 18, 2026
7e8b418
(A013) [ModelicaSystemDoE] simplify definition
syntron Jan 18, 2026
20df470
(A014) [ModelExecution] update code for execution of a compiled model
syntron Jan 18, 2026
08056f6
[ModelicaSystem] define check_model_executable() - test if the model …
syntron Jan 20, 2026
69e5e82
(B001) split ModelicaSystem
syntron Jan 24, 2026
411d2aa
(B002) split ModelicaSystemDoE
syntron Jan 24, 2026
313e772
(B003) update OMCSession:OMPathABC
syntron Jan 25, 2026
09d0cef
(B004) define OMCSession:OMSessionABC
syntron Jan 26, 2026
dc6ae9f
(C001) Runner definition
syntron Jan 27, 2026
801909f
[OM(C)SessionABC] small fixes
syntron Feb 9, 2026
a997c24
(D002) move OMCSessionZMQ
syntron Feb 9, 2026
13648a1
(D003) improve OMCPath
syntron Feb 9, 2026
91c4f61
(D004) define OMSessionRunner
syntron Feb 9, 2026
ba4e3f8
(D005) update classes in OMCSession
syntron Feb 9, 2026
1515170
(D006) small fixes in ModelicaSystem
syntron Feb 8, 2026
f956fbd
(D008) add v4.0.0 compatibility layer
syntron Feb 9, 2026
daa34cc
Merge branch 'D007-test_v400' into merge_BCDEF_squash
syntron Feb 27, 2026
4ce8804
(E001) update tests (v4.x.x)
syntron Feb 8, 2026
f44ad1a
(E002) prepare restructure
syntron Feb 13, 2026
58d6912
[ModelExecution*] move classes into model_execution.py
syntron Feb 13, 2026
23565bc
[OMCSession] split file
syntron Feb 9, 2026
d937b8f
[ModelicaSystem] split file
syntron Feb 13, 2026
2c34957
(F001) cleanup after restructure
syntron Feb 14, 2026
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
73 changes: 73 additions & 0 deletions .github/workflows/Test_v400.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
name: Test-v4.0.0

on:
workflow_dispatch:

jobs:
test:
runs-on: ${{ matrix.os }}
timeout-minutes: 30
strategy:
matrix:
# test for:
# * oldest supported version
# * latest available Python version
python-version: ['3.10', '3.14']
# * Linux using ubuntu-latest
# * Windows using windows-latest
os: ['ubuntu-latest', 'windows-latest']
# * OM stable - latest stable version
# * OM nightly - latest nightly build
omc-version: ['stable', 'nightly']

steps:
- uses: actions/checkout@v6

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
architecture: 'x64'

- name: Install dependencies
run: |
python -m pip install --upgrade pip build setuptools wheel twine
pip install . pytest pytest-md pytest-emoji pre-commit

- name: Set timezone
uses: szenius/set-timezone@v2.0
with:
timezoneLinux: 'Europe/Berlin'

- name: Run pre-commit linters
run: 'pre-commit run --all-files'

- name: "Set up OpenModelica Compiler"
uses: OpenModelica/setup-openmodelica@v1.0.6
with:
version: ${{ matrix.omc-version }}
packages: |
omc
libraries: |
'Modelica 4.0.0'
- run: "omc --version"

- name: Pull OpenModelica docker image
if: runner.os != 'Windows'
run: docker pull openmodelica/openmodelica:v1.25.0-minimal

- name: Build wheel and sdist packages
run: python -m build --wheel --sdist --outdir dist

- name: Check twine
run: python -m twine check dist/*

- name: Run pytest
uses: pavelzw/pytest-action@v2
with:
verbose: true
emoji: true
job-summary: true
custom-arguments: '-v ./tests_v400'
click-to-expand: true
report-title: 'Test Report'
70 changes: 70 additions & 0 deletions .github/workflows/Test_v400_py310.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
name: Test-v4.0.0-py310

on:
workflow_dispatch:

jobs:
test:
runs-on: ${{ matrix.os }}
timeout-minutes: 30
strategy:
matrix:
# test for:
# * oldest supported version
python-version: ['3.10']
# * Linux using ubuntu-latest
os: ['ubuntu-latest']
# * OM stable - latest stable version
omc-version: ['stable']

steps:
- uses: actions/checkout@v6

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
architecture: 'x64'

- name: Install dependencies
run: |
python -m pip install --upgrade pip build setuptools wheel twine
pip install . pytest pytest-md pytest-emoji pre-commit

- name: Set timezone
uses: szenius/set-timezone@v2.0
with:
timezoneLinux: 'Europe/Berlin'

- name: Run pre-commit linters
run: 'pre-commit run --all-files'

- name: "Set up OpenModelica Compiler"
uses: OpenModelica/setup-openmodelica@v1.0.6
with:
version: ${{ matrix.omc-version }}
packages: |
omc
libraries: |
'Modelica 4.0.0'
- run: "omc --version"

- name: Pull OpenModelica docker image
if: runner.os != 'Windows'
run: docker pull openmodelica/openmodelica:v1.25.0-minimal

- name: Build wheel and sdist packages
run: python -m build --wheel --sdist --outdir dist

- name: Check twine
run: python -m twine check dist/*

- name: Run pytest
uses: pavelzw/pytest-action@v2
with:
verbose: true
emoji: true
job-summary: true
custom-arguments: '-v ./tests_v400'
click-to-expand: true
report-title: 'Test Report'
73 changes: 73 additions & 0 deletions .github/workflows/Test_v4xx.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
name: Test-v4.x.x

on:
workflow_dispatch:

jobs:
test:
runs-on: ${{ matrix.os }}
timeout-minutes: 30
strategy:
matrix:
# test for:
# * oldest supported version
# * latest available Python version
python-version: ['3.10', '3.14']
# * Linux using ubuntu-latest
# * Windows using windows-latest
os: ['ubuntu-latest', 'windows-latest']
# * OM stable - latest stable version
# * OM nightly - latest nightly build
omc-version: ['stable', 'nightly']

steps:
- uses: actions/checkout@v6

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
architecture: 'x64'

- name: Install dependencies
run: |
python -m pip install --upgrade pip build setuptools wheel twine
pip install . pytest pytest-md pytest-emoji pre-commit

- name: Set timezone
uses: szenius/set-timezone@v2.0
with:
timezoneLinux: 'Europe/Berlin'

- name: Run pre-commit linters
run: 'pre-commit run --all-files'

- name: "Set up OpenModelica Compiler"
uses: OpenModelica/setup-openmodelica@v1.0.6
with:
version: ${{ matrix.omc-version }}
packages: |
omc
libraries: |
'Modelica 4.0.0'
- run: "omc --version"

- name: Pull OpenModelica docker image
if: runner.os != 'Windows'
run: docker pull openmodelica/openmodelica:v1.25.0-minimal

- name: Build wheel and sdist packages
run: python -m build --wheel --sdist --outdir dist

- name: Check twine
run: python -m twine check dist/*

- name: Run pytest
uses: pavelzw/pytest-action@v2
with:
verbose: true
emoji: true
job-summary: true
custom-arguments: '-v ./tests'
click-to-expand: true
report-title: 'Test Report'
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ repos:
hooks:
- id: mypy
args: []
exclude: tests/
exclude: 'test|test_v400'
additional_dependencies:
- pyparsing
- types-psutil
Expand Down
Loading