+
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/workflows/test_docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ jobs:
with:
python-version: ${{ matrix.python-version }}

- name: "Setup Graphviz"
uses: ts-graphviz/setup-graphviz@v2

- name: "Install requirements"
run: pip install -r requirements/requirements_build.txt

Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,9 @@ jobs:
with:
python-version: ${{ matrix.python-version }}

- name: "Setup Graphviz"
uses: ts-graphviz/setup-graphviz@v2

- name: "Update pip to the latest version and install tox"
shell: pwsh
run: |
Expand Down
1 change: 1 addition & 0 deletions requirements/requirements_test.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
ansys-platform-instancemanagement==1.1.2
coverage==7.6.11
graphviz==0.20.1
imageio==2.36.0
imageio-ffmpeg==0.6.0
pytest==8.3.4
Expand Down
4 changes: 2 additions & 2 deletions src/ansys/dpf/core/workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -934,10 +934,10 @@

if save_as:
image_path = Path(save_as)
dot_path = image_path.parent / image_path.stem / ".dot"
dot_path = image_path.parent / f"{image_path.stem}.dot"

Check warning on line 937 in src/ansys/dpf/core/workflow.py

View check run for this annotation

Codecov / codecov/patch

src/ansys/dpf/core/workflow.py#L937

Added line #L937 was not covered by tests
else:
image_path = Path.cwd() / f"{name}.png"
dot_path = image_path.parent / image_path.stem / ".dot"
dot_path = image_path.parent / f"{image_path.stem}.dot"

Check warning on line 940 in src/ansys/dpf/core/workflow.py

View check run for this annotation

Codecov / codecov/patch

src/ansys/dpf/core/workflow.py#L940

Added line #L940 was not covered by tests

# Create graphviz file of workflow
self.to_graphviz(dot_path)
Expand Down
2 changes: 1 addition & 1 deletion tests/test_workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def remove_files():
request.addfinalizer(remove_files)


@pytest.mark.skipif(not HAS_GRAPHVIZ, reason="Please install pyvista")
@pytest.mark.skipif(not HAS_GRAPHVIZ, reason="Please install graphviz")
def test_workflow_view(server_in_process, remove_dot_file):
pre_wf = dpf.core.Workflow(server=server_in_process)
pre_op = dpf.core.operators.utility.forward(server=server_in_process)
Expand Down
Loading
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载