From 8cc3047c3bcd73b918e792b2a9db7b75c8dc378f Mon Sep 17 00:00:00 2001 From: Mohamed Koubaa Date: Wed, 13 Nov 2024 12:30:53 -0600 Subject: [PATCH] use dpf installation action rather than starting the dpf server (#616) Co-authored-by: Mohamed Koubaa --- .github/workflows/ci_cd.yml | 18 +++++++++--------- examples/Airbag/airbag_post.py | 4 ++-- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/.github/workflows/ci_cd.yml b/.github/workflows/ci_cd.yml index 79690cc84..2fb321a52 100644 --- a/.github/workflows/ci_cd.yml +++ b/.github/workflows/ci_cd.yml @@ -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/install-dpf-server@v2.3 + with: + dpf-standalone-TOKEN: ${{secrets.PYANSYS_CI_BOT_TOKEN}} + ANSYS_VERSION : "242" - name: LS-DYNA Keyword server activation run: | @@ -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 }} diff --git a/examples/Airbag/airbag_post.py b/examples/Airbag/airbag_post.py index 62c65a188..bcb52a4c4 100644 --- a/examples/Airbag/airbag_post.py +++ b/examples/Airbag/airbag_post.py @@ -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