Skip to content

Commit 5bffcaf

Browse files
committed
mechanical cicd
1 parent 2cfb942 commit 5bffcaf

File tree

1 file changed

+10
-15
lines changed

1 file changed

+10
-15
lines changed

.github/workflows/geometry-mechanical-dpf.yml

Lines changed: 10 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,9 @@ jobs:
8787
strategy:
8888
fail-fast: false
8989
matrix:
90-
ansys-release: [24.1.0, 24.2.0]
90+
ansys-release: [24.1, 24.2]
9191
container:
92-
image: 'ghcr.io/ansys/mechanical:${{ matrix.ansys-release }}'
92+
image: 'ghcr.io/ansys/mechanical:${{ matrix.ansys-release }}.0'
9393
options: --entrypoint /bin/bash
9494
steps:
9595

@@ -109,30 +109,25 @@ jobs:
109109
110110
- name: Install dependencies
111111
run: |
112+
. /env/bin/activate
112113
python -m pip install --upgrade pip
113114
pip install -r geometry-mechanical-dpf/requirements_${{ matrix.ansys-release }}.txt
114115
115-
- name: Login to GitHub Container Registry
116-
uses: docker/login-action@v3
117-
with:
118-
registry: ghcr.io
119-
username: ${{ github.actor }}
120-
password: ${{ secrets.GITHUB_TOKEN }}
121-
122-
- name: Download PRIME service container
123-
run: docker pull ${{ env.PRIME_DOCKER_IMAGE }}:${{ matrix.ansys-release }}
124-
125116
- name: Check out the geometry outputs
126117
uses: actions/download-artifact@v4
127118
with:
128119
name: geometry-outputs-${{ matrix.ansys-release }}
129120
path: geometry-mechanical-dpf/outputs
130121

131-
- name: Run the PyPrimeMesh script
122+
- name: Run the PyPyMechanical script
132123
env:
133-
PYPRIMEMESH_IMAGE_TAG: ${{ matrix.ansys-release }}
124+
NUM_CORES: 1
125+
LICENSE_SERVER: ${{ secrets.LICENSE_SERVER }}
126+
ANSYS_WORKBENCH_LOGGING_CONSOLE: 0
127+
ANSYS_WORKBENCH_LOGGING: 0
128+
ANSYS_WORKBENCH_LOGGING_FILTER_LEVEL: 2
134129
run: |
135-
python geometry-mechanical-dpf/02_mesh.py
130+
xvfb-run mechanical-env python geometry-mechanical-dpf/02_mechanical.py
136131
137132
- name: Store the outputs
138133
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)