Skip to content

Commit 716f5b9

Browse files
committed
??? workflow for v4.0.0
1 parent 7d3e825 commit 716f5b9

1 file changed

Lines changed: 71 additions & 0 deletions

File tree

.github/workflows/Test400.yml

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
name: Test-v4.0.0
2+
3+
on:
4+
push:
5+
branches: ['master']
6+
tags:
7+
- 'v*' # only publish when pushing version tags (e.g., v1.0.0)
8+
pull_request:
9+
workflow_dispatch:
10+
11+
jobs:
12+
test:
13+
runs-on: ${{ matrix.os }}
14+
timeout-minutes: 30
15+
strategy:
16+
matrix:
17+
python-version: ['3.10', '3.14']
18+
os: ['ubuntu-latest', 'windows-latest']
19+
omc-version: ['stable', 'nightly']
20+
21+
steps:
22+
- uses: actions/checkout@v6
23+
24+
- name: Set up Python ${{ matrix.python-version }}
25+
uses: actions/setup-python@v6
26+
with:
27+
python-version: ${{ matrix.python-version }}
28+
architecture: 'x64'
29+
30+
- name: Install dependencies
31+
run: |
32+
python -m pip install --upgrade pip build setuptools wheel twine
33+
pip install . pytest pytest-md pytest-emoji pre-commit
34+
35+
- name: Set timezone
36+
uses: szenius/set-timezone@v2.0
37+
with:
38+
timezoneLinux: 'Europe/Berlin'
39+
40+
- name: Run pre-commit linters
41+
run: 'pre-commit run --all-files'
42+
43+
- name: "Set up OpenModelica Compiler"
44+
uses: OpenModelica/setup-openmodelica@v1.0.5
45+
with:
46+
version: ${{ matrix.omc-version }}
47+
packages: |
48+
omc
49+
libraries: |
50+
'Modelica 4.0.0'
51+
- run: "omc --version"
52+
53+
- name: Pull OpenModelica docker image
54+
if: runner.os != 'Windows'
55+
run: docker pull openmodelica/openmodelica:v1.25.0-minimal
56+
57+
- name: Build wheel and sdist packages
58+
run: python -m build --wheel --sdist --outdir dist
59+
60+
- name: Check twine
61+
run: python -m twine check dist/*
62+
63+
- name: Run pytest
64+
uses: pavelzw/pytest-action@v2
65+
with:
66+
verbose: true
67+
emoji: true
68+
job-summary: true
69+
custom-arguments: '-v ./test-v4.0.0 '
70+
click-to-expand: true
71+
report-title: 'Test Report'

0 commit comments

Comments
 (0)