Skip to content

Commit 8cc3047

Browse files
koubaaMohamed Koubaa
andauthored
use dpf installation action rather than starting the dpf server (#616)
Co-authored-by: Mohamed Koubaa <[email protected]>
1 parent 11661b7 commit 8cc3047

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

.github/workflows/ci_cd.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -106,10 +106,16 @@ jobs:
106106
username: ${{ github.actor }}
107107
password: ${{ secrets.GITHUB_TOKEN }}
108108

109-
- name: "Install and run DPF server"
109+
- name: Set Licensing
110+
shell: bash
110111
run: |
111-
docker pull ghcr.io/ansys/dpf-core:22.2dev
112-
docker run -d --name dpfserver -p 50054:50052 ghcr.io/ansys/dpf-core:22.2dev && echo "DPF Server active on port 50054."
112+
echo "ANSYS_DPF_ACCEPT_LA=Y" >> $GITHUB_ENV
113+
114+
- name: Install DPF
115+
uses: ansys/pydpf-actions/[email protected]
116+
with:
117+
dpf-standalone-TOKEN: ${{secrets.PYANSYS_CI_BOT_TOKEN}}
118+
ANSYS_VERSION : "242"
113119

114120
- name: LS-DYNA Keyword server activation
115121
run: |
@@ -166,12 +172,6 @@ jobs:
166172
name: server_output_docs.txt
167173
path: server_output.txt
168174

169-
- name: DPF Logs (on screen)
170-
if: always()
171-
run: |
172-
docker logs dpfserver
173-
docker stop dpfserver
174-
175175
smoke-tests:
176176
name: "Build wheelhouse for ${{ matrix.os }} and Python ${{ matrix.python-version }}"
177177
runs-on: ${{ matrix.os }}

examples/Airbag/airbag_post.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@
1010
# ~~~~~~~~~~~~~~~~~~~~~~~~
1111
# Import required imports.
1212
#
13-
from ansys.dpf import core as dpf
13+
# from ansys.dpf import core as dpf
1414

1515
###############################################################################
1616
# Connect to DPF Server
1717
# ~~~~~~~~~~~~~~~~~~~~~
1818
# Connect to the DPF Server.
1919
#
20-
dpf.connect_to_server()
20+
# dpf.connect_to_server()
2121

2222
###############################################################################
2323
# Load model

0 commit comments

Comments
 (0)