Skip to content

Commit 5b396d3

Browse files
committed
add mechanical image
1 parent ffbc829 commit 5b396d3

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

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

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,17 +88,24 @@ jobs:
8888
fail-fast: false
8989
matrix:
9090
ansys-release: [24.1.0, 24.2]
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)