Skip to content

Fix workflow for testing OpenModelica #6

Fix workflow for testing OpenModelica

Fix workflow for testing OpenModelica #6

Workflow file for this run

name: Test
on:
push:
branches:
- 'master'
pull_request:
jobs:
test:
runs-on: 'ubuntu-latest'
env:
OPENMODELICAHOME: '/usr/'
timeout-minutes: 60
steps:
- uses: actions/checkout@v3
- name: "Set up OpenModelica Compiler"
uses: AnHeuermann/[email protected]
with:
version: 'stable'
packages: |
omc
libraries: |
'Modelica 4.0.0'
omc-diff: true
- name: "Test OpenModelica"
run: "make -C Testing openmodelica"
- name: "Look for failing tests"
run: "grep -i \"== 92 out of [0-9]* tests failed\" ./openmodelica.log | grep \"equation mismatch\" ./openmodelica.log"
- name: "Upload openmodelica.log"
uses: actions/upload-artifact@v3
with:
name: openmodelicar.-log
path: Testing/openmodelica.log