Skip to content

Commit d6e1480

Browse files
fix: Skip Qt test
1 parent 02cb7bc commit d6e1480

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.github/workflows/ci_cd.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ env:
1414
RESET_IMAGE_CACHE: 0
1515
PACKAGE_NAME: ansys-tools-visualization-interface
1616
DOCUMENTATION_CNAME: visualization-interface.tools.docs.pyansys.com
17+
IN_GITHUB_ACTIONS: true
1718

1819
concurrency:
1920
group: ${{ github.workflow }}-${{ github.ref }}

tests/test_generic_plotter.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,18 @@
2020
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2121
# SOFTWARE.
2222
"""Test module for the generic plotter."""
23+
import os
2324
from pathlib import Path
2425

2526
import numpy as np
27+
import pytest
2628
import pyvista as pv
2729

2830
from ansys.tools.visualization_interface import ClipPlane, MeshObjectPlot, Plotter
2931
from ansys.tools.visualization_interface.backends.pyvista import PyVistaBackend
3032

33+
IN_GITHUB_ACTIONS = os.getenv("GITHUB_ACTIONS") == "true"
34+
3135

3236
class CustomTestClass:
3337
"""Mock custom class for testing MeshObjectPlot."""
@@ -44,7 +48,7 @@ def test_plotter_add_pd():
4448
pl.plot(sphere)
4549
pl.show()
4650

47-
51+
@pytest.mark.skipif(IN_GITHUB_ACTIONS, reason="Qt breaks CICD.")
4852
def test_plotter_pyvistaqt():
4953
"""Adds polydata to the plotter."""
5054
qt_backend = PyVistaBackend(use_qt=True)

0 commit comments

Comments
 (0)