Skip to content

Commit 2cfb942

Browse files
committed
add mechanical image
1 parent ffbc829 commit 2cfb942

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

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

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -87,18 +87,25 @@ jobs:
8787
strategy:
8888
fail-fast: false
8989
matrix:
90-
ansys-release: [24.1.0, 24.2]
90+
ansys-release: [24.1.0, 24.2.0]
91+
container:
92+
image: 'ghcr.io/ansys/mechanical:${{ matrix.ansys-release }}'
93+
options: --entrypoint /bin/bash
9194
steps:
9295

9396
- name: Checkout code
9497
uses: actions/checkout@v4
9598
with:
9699
sparse-checkout: 'geometry-mechanical-dpf'
97100

98-
- name: Set up Python ${{ env.MAIN_PYTHON_VERSION }}
99-
uses: actions/setup-python@v5
100-
with:
101-
python-version: ${{ env.MAIN_PYTHON_VERSION }}
101+
- name: Set up Python
102+
run: |
103+
apt update
104+
apt install --reinstall ca-certificates
105+
apt install software-properties-common -y
106+
add-apt-repository ppa:deadsnakes/ppa -y
107+
apt install -y python${{ env.MAIN_PYTHON_VERSION }} python${{ env.MAIN_PYTHON_VERSION }}-venv
108+
python${{ env.MAIN_PYTHON_VERSION }} -m venv /env
102109
103110
- name: Install dependencies
104111
run: |

0 commit comments

Comments
 (0)