Skip to content

Commit

Permalink
Run operator tests (#1748)
Browse files Browse the repository at this point in the history
* Run operator tests

Signed-off-by: paul.profizi <paul.profizi@ansys.com>

* Run operator tests

Signed-off-by: paul.profizi <paul.profizi@ansys.com>

* Fix retro

Signed-off-by: paul.profizi <paul.profizi@ansys.com>

* Fix Docker

Signed-off-by: paul.profizi <paul.profizi@ansys.com>

---------

Signed-off-by: paul.profizi <paul.profizi@ansys.com>
  • Loading branch information
PProfizi authored Sep 16, 2024
1 parent a314cd0 commit 7decc11
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/test_docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,15 @@ jobs:
command: |
pytest $DEBUG $COVERAGE $RERUNS --junitxml=tests/junit/test-results9.xml test_service/.
- name: "Test Operators"
uses: nick-fields/retry@v2
with:
timeout_minutes: 3
max_attempts: 2
shell: bash
command: |
pytest $DEBUG $COVERAGE $RERUNS --junitxml=../tests/junit/test-results12.xml tests/operators/.
# - name: "Test API Entry"
# shell: bash
# working-directory: tests
Expand Down
12 changes: 12 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,18 @@ jobs:
- name: "Kill all servers"
uses: ansys/pydpf-actions/kill-dpf-servers@v2.3

- name: "Test Operators"
uses: nick-fields/retry@v2
with:
timeout_minutes: 2
max_attempts: 2
shell: bash
command: |
pytest $DEBUG $COVERAGE $RERUNS --junitxml=../tests/junit/test-results12.xml tests/operators/.
- name: "Kill all servers"
uses: ansys/pydpf-actions/kill-dpf-servers@v2.3

- name: "Upload Test Results"
uses: actions/upload-artifact@v4
with:
Expand Down
5 changes: 5 additions & 0 deletions tests/operators/test_operator_mesh_plan_clip.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,13 @@

import ansys.dpf.core as dpf
import conftest
import pytest


@pytest.mark.skipif(
not conftest.SERVERS_VERSION_GREATER_THAN_OR_EQUAL_TO_5_0,
reason="Mesh clip plan operator not functional before 5.0,",
)
def test_operator_mesh_plan_clip_rst(simple_bar):
model = dpf.Model(simple_bar)
main_mesh = model.metadata.meshed_region
Expand Down

0 comments on commit 7decc11

Please sign in to comment.