Skip to content

Commit f64a143

Browse files
committed
Run docker test only on Linux
1 parent 9b9327f commit f64a143

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

.github/workflows/Test.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ jobs:
4949
- run: "omc --version"
5050

5151
- name: Pull OpenModelica docker image
52+
if: runner.os != 'Windows'
5253
run: docker pull openmodelica/openmodelica:v1.25.0-minimal
5354

5455
- name: Run pytest

tests/test_docker.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
1+
import sys
2+
import pytest
13
import OMPython
24

5+
skip_on_windows = pytest.mark.skipif(
6+
sys.platform.startswith("win"),
7+
reason="OpenModelica Docker image is Linux-only; skipping on Windows.",
8+
)
39

10+
@skip_on_windows
411
def test_docker():
512
omcp = OMPython.OMCProcessDocker(docker="openmodelica/openmodelica:v1.25.0-minimal")
613
om = OMPython.OMCSessionZMQ(omc_process=omcp)

0 commit comments

Comments
 (0)