Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions tools/tests/dockerfiles/ubuntu_2404/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -100,15 +100,21 @@ ENV CMAKE_PREFIX_PATH="/home/precice/.local"


FROM precice AS python_bindings
ARG PYTHON_BINDINGS_PR
ARG PYTHON_BINDINGS_REF

USER precice
WORKDIR /home/precice

# Builds the precice python bindings for python3
# Installs also matplotlib as it is needed for the elastic-tube 1d fluid-python participant.
RUN python3 -m venv /home/precice/venv && \
RUN git clone https://github.com/precice/python-bindings.git python-bindings && \
cd python-bindings && \
if [ -n "${PYTHON_BINDINGS_PR}" ]; then git fetch origin pull/${PYTHON_BINDINGS_PR}/head; fi && \
git checkout ${PYTHON_BINDINGS_REF} && \
python3 -m venv /home/precice/venv && \
. /home/precice/venv/bin/activate && \
pip3 install git+https://github.com/precice/python-bindings.git@${PYTHON_BINDINGS_REF} && \
pip3 install . && \
pip3 install matplotlib
### end of python_bindings stage ###

Expand Down
9 changes: 9 additions & 0 deletions tools/tests/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -891,6 +891,15 @@ test_suites:
- *partitioned-heat-conduction-mixedbc_left-openfoam_right-openfoam
- *partitioned-heat-conduction-robin_left-openfoam_right-openfoam

python-bindings:
tutorials:
- *elastic-tube-1d_fluid-python_solid-python
- *oscillator_mass-left-fmi_mass-right-fmi
- *partitioned-heat-conduction_dirichlet-fenicsx_neumann-fenicsx
- *partitioned-heat-conduction_dirichlet-nutils_neumann-nutils
- *perpendicular-flap_fluid-su2_solid-fenics
- *two-scale-heat-conduction_macro-nutils_micro-nutils

solids4foam:
tutorials:
- *perpendicular-flap_fluid-openfoam_solid-solids4foam
Expand Down