File tree Expand file tree Collapse file tree 5 files changed +10
-3
lines changed Expand file tree Collapse file tree 5 files changed +10
-3
lines changed Original file line number Diff line number Diff line change 51
51
with :
52
52
python-version : ${{ matrix.python-version }}
53
53
54
+ - name : " Setup Graphviz"
55
+ uses : ts-graphviz/setup-graphviz@v2
56
+
54
57
- name : " Install requirements"
55
58
run : pip install -r requirements/requirements_build.txt
56
59
Original file line number Diff line number Diff line change @@ -114,6 +114,9 @@ jobs:
114
114
with :
115
115
python-version : ${{ matrix.python-version }}
116
116
117
+ - name : " Setup Graphviz"
118
+ uses : ts-graphviz/setup-graphviz@v2
119
+
117
120
- name : " Update pip to the latest version and install tox"
118
121
shell : pwsh
119
122
run : |
Original file line number Diff line number Diff line change 1
1
ansys-platform-instancemanagement==1.1.2
2
2
coverage==7.6.11
3
+ graphviz==0.20.1
3
4
imageio==2.36.0
4
5
imageio-ffmpeg==0.6.0
5
6
pytest==8.3.4
Original file line number Diff line number Diff line change @@ -934,10 +934,10 @@ def view(
934
934
935
935
if save_as :
936
936
image_path = Path (save_as )
937
- dot_path = image_path .parent / image_path .stem / " .dot"
937
+ dot_path = image_path .parent / f" { image_path .stem } .dot"
938
938
else :
939
939
image_path = Path .cwd () / f"{ name } .png"
940
- dot_path = image_path .parent / image_path .stem / " .dot"
940
+ dot_path = image_path .parent / f" { image_path .stem } .dot"
941
941
942
942
# Create graphviz file of workflow
943
943
self .to_graphviz (dot_path )
Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ def remove_files():
63
63
request .addfinalizer (remove_files )
64
64
65
65
66
- @pytest .mark .skipif (not HAS_GRAPHVIZ , reason = "Please install pyvista " )
66
+ @pytest .mark .skipif (not HAS_GRAPHVIZ , reason = "Please install graphviz " )
67
67
def test_workflow_view (server_in_process , remove_dot_file ):
68
68
pre_wf = dpf .core .Workflow (server = server_in_process )
69
69
pre_op = dpf .core .operators .utility .forward (server = server_in_process )
You can’t perform that action at this time.
0 commit comments