Skip to content

Commit 0c13c7d

Browse files
authored
cicd: reacitvate Linux testing (#796)
1 parent 46ca18a commit 0c13c7d

File tree

2 files changed

+14
-11
lines changed

2 files changed

+14
-11
lines changed

.github/workflows/ci_cd.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -341,14 +341,14 @@ jobs:
341341
key: pyvista-image-cache-${{ runner.os }}-v-${{ env.RESET_IMAGE_CACHE }}-${{ hashFiles('pyproject.toml') }}
342342
restore-keys: pyvista-image-cache-${{ runner.os }}-v-${{ env.RESET_IMAGE_CACHE }}
343343

344-
# - name: Run pytest
345-
# if: env.SKIP_UNSTABLE == 'false'
346-
# uses: ansys/actions/tests-pytest@v4
347-
# env:
348-
# ALLOW_PLOTTING: true
349-
# with:
350-
# python-version: ${{ env.MAIN_PYTHON_VERSION }}
351-
# checkout: false
344+
- name: Run pytest
345+
if: env.SKIP_UNSTABLE == 'false'
346+
uses: ansys/actions/tests-pytest@v4
347+
env:
348+
ALLOW_PLOTTING: true
349+
with:
350+
python-version: ${{ env.MAIN_PYTHON_VERSION }}
351+
checkout: false
352352

353353
- name: Upload integration test logs
354354
if: always()

tests/integration/test_design_import.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -147,10 +147,13 @@ def test_open_file(modeler: Modeler, tmp_path_factory: pytest.TempPathFactory):
147147

148148
file = tmp_path_factory.mktemp("test_design_import") / "two_cars.scdocx"
149149
design.download(file)
150-
design2 = modeler.open_file(file)
151150

152-
# assert the two cars are the same
153-
_checker_method(design, design2, True)
151+
# TODO: to be reactivated by https://github.com/ansys/pyansys-geometry/issues/799
152+
if modeler.client.backend_type != BackendType.LINUX_SERVICE:
153+
design2 = modeler.open_file(file)
154+
155+
# assert the two cars are the same
156+
_checker_method(design, design2, True)
154157

155158
# Test HOOPS formats (Windows only)
156159
if modeler.client.backend_type != BackendType.LINUX_SERVICE:

0 commit comments

Comments
 (0)