Skip to content

Commit

Permalink
Merge branch 'main' into feat/technical
Browse files Browse the repository at this point in the history
  • Loading branch information
koubaa authored Nov 13, 2024
2 parents e6bd3f8 + 8cc3047 commit d16db93
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 @@ -132,10 +132,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 @@ -192,12 +198,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 d16db93

Please sign in to comment.