Skip to content

Commit 0a8767f

Browse files
committed
switch CI to github workflow actions
1 parent a45ee14 commit 0a8767f

File tree

1 file changed

+46
-0
lines changed

1 file changed

+46
-0
lines changed

.github/workflows/Test.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: Test
2+
3+
on:
4+
push:
5+
branches: ['master']
6+
pull_request:
7+
workflow_dispatch:
8+
9+
jobs:
10+
test:
11+
runs-on: ${{ matrix.os }}
12+
timeout-minutes: 30
13+
strategy:
14+
matrix:
15+
python-version: ['3.10']
16+
os: ['ubuntu-latest']
17+
omc-version: ['stable']
18+
19+
steps:
20+
- uses: actions/checkout@v4
21+
- name: "Set up OpenModelica Compiler"
22+
uses: AnHeuermann/setup-openmodelica@v0.6
23+
with:
24+
version: ${{ matrix.omc-version }}
25+
packages: |
26+
omc
27+
28+
- run: "omc --version"
29+
30+
- uses: actions/checkout@v4
31+
- name: Set up Python ${{ matrix.python-version }}
32+
uses: actions/setup-python@v4
33+
with:
34+
python-version: ${{ matrix.python-version }}
35+
architecture: 'x64'
36+
37+
- name: Install dependencies
38+
run: |
39+
python -m pip install --upgrade pip
40+
pip install future pyparsing numpy psutil pyzmq
41+
42+
- name: Test OMPython
43+
run: |
44+
python -m unittest tests/test_ModelicaSystem.py
45+
python -m unittest tests/test_OMParser.py
46+
python -m unittest tests/test_ZMQ.py

0 commit comments

Comments
 (0)