Skip to content

Commit

Permalink
use dpf installation action rather than starting the dpf server (#616)
Browse files Browse the repository at this point in the history
Co-authored-by: Mohamed Koubaa <[email protected]>
  • Loading branch information
koubaa and Mohamed Koubaa authored Nov 13, 2024
1 parent 11661b7 commit 8cc3047
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/ci_cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,10 +106,16 @@ jobs:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

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

- name: LS-DYNA Keyword server activation
run: |
Expand Down Expand Up @@ -166,12 +172,6 @@ jobs:
name: server_output_docs.txt
path: server_output.txt

- name: DPF Logs (on screen)
if: always()
run: |
docker logs dpfserver
docker stop dpfserver
smoke-tests:
name: "Build wheelhouse for ${{ matrix.os }} and Python ${{ matrix.python-version }}"
runs-on: ${{ matrix.os }}
Expand Down
4 changes: 2 additions & 2 deletions examples/Airbag/airbag_post.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@
# ~~~~~~~~~~~~~~~~~~~~~~~~
# Import required imports.
#
from ansys.dpf import core as dpf
# from ansys.dpf import core as dpf

###############################################################################
# Connect to DPF Server
# ~~~~~~~~~~~~~~~~~~~~~
# Connect to the DPF Server.
#
dpf.connect_to_server()
# dpf.connect_to_server()

###############################################################################
# Load model
Expand Down

0 comments on commit 8cc3047

Please sign in to comment.