Skip to content

Commit 4278050

Browse files
committed
??? workflow with only py310 / ubuntu / latest
1 parent 7a235e4 commit 4278050

1 file changed

Lines changed: 66 additions & 0 deletions

File tree

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

0 commit comments

Comments
 (0)