From 755fb6234082aff7277490c03143bdd68b4ae7d6 Mon Sep 17 00:00:00 2001 From: JKRT Date: Fri, 20 Nov 2026 20:35:34 +0100 Subject: [PATCH 1/4] Compat for OM 0.13 and OMBackend 1 Assisted-by: Claude Opus 5.5 --- Project.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Project.toml b/Project.toml index d49f02b..9d49529 100644 --- a/Project.toml +++ b/Project.toml @@ -21,8 +21,8 @@ OMFrontend = { path = "../OMFrontend.jl" } [compat] julia = "1.13" -OM = "0.10, 0.11, 0.12" -OMBackend = "0.9, 0.10, 0.11, 0.12" +OM = "0.10, 0.11, 0.12, 0.13" +OMBackend = "0.9, 0.10, 0.11, 0.12, 1" OMFrontend = "2" [extras] From 1c3b0c189d1adad9d5ac2d79307bbb5556a63114 Mon Sep 17 00:00:00 2001 From: JKRT Date: Sat, 21 Nov 2026 00:11:06 +0100 Subject: [PATCH 2/4] OMLibraryTesting 0.4.4: OMFrontend 3 Assisted-by: Claude Opus 5.5 --- Project.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Project.toml b/Project.toml index 9d49529..50fd8f7 100644 --- a/Project.toml +++ b/Project.toml @@ -1,6 +1,6 @@ name = "OMLibraryTesting" uuid = "4866894a-ca78-4bef-9a5c-0d35f2f81ce1" -version = "0.4.3" +version = "0.4.4" authors = ["John Tinnerholm "] [deps] @@ -23,7 +23,7 @@ OMFrontend = { path = "../OMFrontend.jl" } julia = "1.13" OM = "0.10, 0.11, 0.12, 0.13" OMBackend = "0.9, 0.10, 0.11, 0.12, 1" -OMFrontend = "2" +OMFrontend = "2, 3" [extras] Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" From 0b46acef56f0d8c5ba012ef09b412a2305eb011f Mon Sep 17 00:00:00 2001 From: JKRT Date: Sat, 21 Nov 2026 13:53:19 +0100 Subject: [PATCH 3/4] CI: package tests' coverage in the summary and a README badge (gh-pages) The smoke workflow measures OMLibraryTesting.jl/src in the package tests; the shared action (JKRT/OM.jl .github/actions/coverage) writes the summary and, on master, coverage.json to gh-pages ("code coverage", next to the MSL coverage badges). No external service. Assisted-by: Claude Opus 5.5 --- .github/workflows/smoke.yml | 20 +++++++++++++++++++- README.md | 1 + 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/.github/workflows/smoke.yml b/.github/workflows/smoke.yml index 4dfd0d9..3d9f2c4 100644 --- a/.github/workflows/smoke.yml +++ b/.github/workflows/smoke.yml @@ -42,6 +42,9 @@ jobs: name: Package tests and smoke models, Julia 1.13 runs-on: ubuntu-latest timeout-minutes: 120 + permissions: + contents: write # the coverage badge file on gh-pages + actions: write # julia-actions/cache deletes the caches it replaces env: JULIA_PKG_PRECOMPILE_AUTO: "0" # One thread: OMLibraryTesting runs no parallel workloads. @@ -71,7 +74,22 @@ jobs: - name: Package tests working-directory: OM.jl/OMLibraryTesting.jl - run: julia --color=yes --project=. -e 'using Pkg; Pkg.test()' + # coverage of the package's directory only (Pkg.test's --code-coverage=@) + run: julia --color=yes --project=. -e 'using Pkg; Pkg.test(; coverage = true)' + + - uses: julia-actions/julia-processcoverage@v1 + with: + directories: OM.jl/OMLibraryTesting.jl/src + + # The package tests' coverage in the job summary and, on master, coverage.json on gh-pages for the README's + # badge (no external service; the action is shared by the OM.jl packages). The smoke models run without it. + - name: Coverage + uses: JKRT/OM.jl/.github/actions/coverage@master + with: + name: OMLibraryTesting.jl/src + label: code coverage + path: OM.jl/OMLibraryTesting.jl + publish: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }} - name: Reference data of the smoke models working-directory: OM.jl/OMLibraryTesting.jl/reference diff --git a/README.md b/README.md index 1287959..46f088c 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,7 @@ [![MSL coverage](https://img.shields.io/endpoint?url=https%3A%2F%2Fopenmodelica.github.io%2FOMLibraryTesting.jl%2Fbadge.json)](https://openmodelica.github.io/OMLibraryTesting.jl/) [![MSL 4.1.0 coverage](https://img.shields.io/endpoint?url=https%3A%2F%2Fopenmodelica.github.io%2FOMLibraryTesting.jl%2Fmsl-4.1.0%2Fbadge.json)](https://openmodelica.github.io/OMLibraryTesting.jl/msl-4.1.0/) +[![Code coverage](https://img.shields.io/endpoint?url=https://openmodelica.github.io/OMLibraryTesting.jl/coverage.json)](https://github.com/OpenModelica/OMLibraryTesting.jl/actions/workflows/smoke.yml?query=branch%3Amaster) A Julia package for running MSL (Modelica Standard Library) coverage tests against [OM.jl](https://github.com/OpenModelica/OM.jl). It auto-discovers all experiment models in the MSL using `omc`, runs each through the OM.jl pipeline (flatten -> translate -> simulate -> validate), and generates HTML coverage reports. From 1b68ec2f6f820e09dd8d90699acf83d91fad6da6 Mon Sep 17 00:00:00 2001 From: JKRT Date: Sun, 22 Nov 2026 14:59:54 +0100 Subject: [PATCH 4/4] Compat for OM 0.14 Assisted-by: Claude Opus 5.5 --- Project.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Project.toml b/Project.toml index 50fd8f7..3122a35 100644 --- a/Project.toml +++ b/Project.toml @@ -21,7 +21,7 @@ OMFrontend = { path = "../OMFrontend.jl" } [compat] julia = "1.13" -OM = "0.10, 0.11, 0.12, 0.13" +OM = "0.10, 0.11, 0.12, 0.13, 0.14" OMBackend = "0.9, 0.10, 0.11, 0.12, 1" OMFrontend = "2, 3"