forked from OpenModelica/OpenModelicaLibraryTesting
-
Notifications
You must be signed in to change notification settings - Fork 0
71 lines (61 loc) · 1.78 KB
/
test.yml
File metadata and controls
71 lines (61 loc) · 1.78 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
name: Continuous Integration
on:
pull_request:
push:
branches:
- master
tags: '*'
jobs:
test:
name: GitHub Actions Test
strategy:
matrix:
omc-version: [stable, nightly]
python-version: ['3.10']
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup OpenModelica
uses: AnHeuermann/setup-openmodelica@v0.7
with:
version: ${{ matrix.omc-version }}
packages: |
'omc'
libraries: |
'Modelica 4.0.0'
'PNlib 2.2.0'
omc-diff: true
- name: Setup Python3
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: 'pip' # caching pip dependencies
- name: Install Python dependencies
shell: bash
run: |
pip install -r requirements.txt
- name: Run library test
shell: bash
run: python test.py --branch="${{ matrix.omc-version }}" --noclean configs/sanityCheck.json
- name: Generate HTML results
shell: bash
run: python report.py --branches="${{ matrix.omc-version }}" configs/sanityCheck.json
- name: Zip HTML results
shell: bash
run: |
python .github/scripts/archiveResults.py "PNlib" "2.2.0" "${{ matrix.omc-version }}" "html/"
- name: Archive sqlite3.db
uses: actions/upload-artifact@v4
if: always()
with:
name: ${{ matrix.omc-version }}-sqlite3.db
path: |
sqlite3.db
- name: Archive HTML
uses: actions/upload-artifact@v4
if: always()
with:
name: ${{ matrix.omc-version }}-PNlib.html
path: html/