Skip to content

Fix workflow for testing OpenModelica #17

Fix workflow for testing OpenModelica

Fix workflow for testing OpenModelica #17

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: "Upload openmodelica.log"
uses: actions/upload-artifact@v3
with:
name: openmodelica.log
path: Testing/openmodelica.log
- name: "Look for failing tests"
run: |
'pwd'
'ls'
'grep "\(^ - \)\|\(... equation mismatch\)" /home/runner/work/PNlib/PNlib/Testing/openmodelica.log | true'
'grep -i "^== 0 out of [0-9]* tests failed" /home/runner/work/PNlib/PNlib/Testing/openmodelica.log'