Skip to content
Draft
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
25446a6
(A014) [ModelExecution] update code for execution of a compiled model
syntron Jan 18, 2026
6c794cb
[ModelicaSystem] define check_model_executable() - test if the model …
syntron Jan 20, 2026
59e6c9d
(B001) split ModelicaSystem
syntron Jan 24, 2026
6504341
(B002) split ModelicaSystemDoE
syntron Jan 24, 2026
ef8a3aa
(B003) update OMCSession:OMPathABC
syntron Jan 25, 2026
7626599
(B004) define OMCSession:OMSessionABC
syntron Jan 26, 2026
ae77187
(C001) Runner definition
syntron Jan 27, 2026
0067e1b
[OM(C)SessionABC] small fixes
syntron Feb 9, 2026
c8095c8
(D002) move OMCSessionZMQ
syntron Feb 9, 2026
7f52092
(D003) improve OMCPath
syntron Feb 9, 2026
7f2a02b
(D004) define OMSessionRunner
syntron Feb 9, 2026
8361414
(D005) update classes in OMCSession
syntron Feb 9, 2026
97c3e4b
(D006) small fixes in ModelicaSystem
syntron Feb 8, 2026
e3984e7
(D008) add v4.0.0 compatibility layer
syntron Feb 9, 2026
1fb3681
(D007) define unittest / workflow for v4.0.0
syntron Feb 8, 2026
a73e331
(E001) update tests (v4.x.x)
syntron Feb 8, 2026
5624b6c
(E002) prepare restructure
syntron Feb 13, 2026
4d93362
[ModelExecution*] move classes into model_execution.py
syntron Feb 13, 2026
b7e40af
[OMCSession] split file
syntron Feb 9, 2026
129d646
[ModelicaSystem] split file
syntron Feb 13, 2026
674bb36
(F001) cleanup after restructure
syntron Feb 14, 2026
27a49e5
G001-pylint
syntron Feb 15, 2026
c7b54c8
G002-bugfix
syntron Feb 15, 2026
6d738a4
G003-compatibility
syntron Feb 15, 2026
a9206d3
G004-remove_deprecated-ModelicaSystem_rewrite_set_functions2
syntron Feb 18, 2026
eedf250
G005-remove_depreciated_functionality2
syntron Feb 16, 2026
1b9af03
remove OMPathCompatibility - update needed Python version to 3.12
syntron Feb 15, 2026
a23279e
remove all compatibility code (v4.0.0)
syntron Feb 15, 2026
6d8ecd9
[ModelicaSystemABC] check OM version - force the version used by the …
syntron Mar 6, 2026
56a787c
[ModelicaSystemABC] define setInputCSV() - function to define input b…
syntron Mar 6, 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
12 changes: 6 additions & 6 deletions .github/workflows/Test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Test-Publish

on:
push:
branches: ['master']
branches: [ 'master' ]
tags:
- 'v*' # only publish when pushing version tags (e.g., v1.0.0)
pull_request:
Expand All @@ -17,13 +17,13 @@ jobs:
# test for:
# * oldest supported version
# * latest available Python version
python-version: ['3.10', '3.14']
python-version: [ '3.12', '3.14' ]
# * Linux using ubuntu-latest
# * Windows using windows-latest
os: ['ubuntu-latest', 'windows-latest']
os: [ 'ubuntu-latest', 'windows-latest' ]
# * OM stable - latest stable version
# * OM nightly - latest nightly build
omc-version: ['stable', 'nightly']
omc-version: [ 'stable', 'nightly' ]

steps:
- uses: actions/checkout@v6
Expand Down Expand Up @@ -83,8 +83,8 @@ jobs:
needs: test
strategy:
matrix:
python-version: ['3.10']
os: ['ubuntu-latest']
python-version: [ '3.12' ]
os: [ 'ubuntu-latest' ]
if: startsWith(github.ref, 'refs/tags/')
steps:
- uses: actions/checkout@v6
Expand Down
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.12', '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'
additional_dependencies:
- pyparsing
- types-psutil
Expand Down
Loading
Loading