Skip to content

Commit 7d7bb37

Browse files
committed
fix dpf step
1 parent ea83c8e commit 7d7bb37

File tree

1 file changed

+15
-19
lines changed

1 file changed

+15
-19
lines changed

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

Lines changed: 15 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,7 @@ jobs:
191191
path: |
192192
geometry-mechanical-dpf/outputs/
193193
geometry-mechanical-dpf/outputs/**/*
194+
include-hidden-files: true
194195
- name: (DOCS) Download the docs artifacts
195196
uses: actions/download-artifact@v5
196197
if: needs.is-only-docs-required.outputs.only-docs == 'true' && matrix.ansys-release == env.ANSYS_RELEASE_FOR_DOCS
@@ -229,37 +230,34 @@ jobs:
229230
overwrite: true
230231

231232
dpf:
232-
name: Mechanical - Dpf
233+
name: Dpf
233234
runs-on: public-ubuntu-latest-8-cores
234-
needs: [geometry, is-only-docs-required]
235+
needs: [mechanical, is-only-docs-required]
235236
strategy:
236237
fail-fast: false
237238
matrix:
238239
ansys-release: ${{ needs.is-only-docs-required.outputs.only-docs == 'true' && fromJSON('[25.1]') || fromJSON('[24.1, 24.2, 25.1]') }}
239240
steps:
240241

242+
- name: Update dependencies
243+
run: |
244+
apt update
245+
apt install -y xvfb git curl make
246+
241247
- name: Checkout code
242248
uses: actions/[email protected]
243249
with:
244250
sparse-checkout: |
245251
geometry-mechanical-dpf
246252
doc
247253
248-
- name: "Set up Python and activate virtual environment"
249-
shell: bash
250-
run: |
251-
apt update
252-
apt install lsb-release xvfb git curl make -y
253-
curl -LsSf https://astral.sh/uv/install.sh | sh
254-
export PATH="$HOME/.local/bin:$PATH"
255-
uv python install python${{ env.MAIN_PYTHON_VERSION }}
256-
uv venv /.venv
254+
- name: "Setup Python"
255+
uses: actions/setup-python@v5
256+
with:
257+
python-version: ${{ env.MAIN_PYTHON_VERSION }}
257258

258-
- name: Install dependencies
259-
run: |
260-
. /.venv/bin/activate
261-
uv pip install --upgrade pip
262-
uv pip install -r geometry-mechanical-dpf/requirements_${{ matrix.ansys-release }}.txt
259+
- name: "Install requirements"
260+
run: install -r geometry-mechanical-dpf/requirements_${{ matrix.ansys-release }}.txt
263261

264262
- name: Check out the mechanical outputs
265263
uses: actions/download-artifact@v5
@@ -281,7 +279,6 @@ jobs:
281279
uses: ansys/pydpf-actions/[email protected]
282280
- name: Run the PyDPF script
283281
run: |
284-
. /.venv/bin/activate
285282
python geometry-mechanical-dpf/wf_gmd_02_mechanical.py
286283
287284
- name: Store the outputs
@@ -302,8 +299,7 @@ jobs:
302299
env:
303300
BUILD_DOCS_SCRIPT: 'geometry-mechanical-dpf/wf_gmd_03_dpf.py'
304301
run: |
305-
. /.venv/bin/activate
306-
uv pip install -r ./doc/requirements.txt
302+
pip install -r ./doc/requirements.txt
307303
xvfb-run make -C doc html
308304
309305
- name: (DOCS) Adapt the documentation paths

0 commit comments

Comments
 (0)