Update Dockerfile #863
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Run preCICE Solverdummies | |
on: | |
push: | |
branches: | |
- "*" | |
pull_request: | |
branches: | |
- "*" | |
jobs: | |
run_solverdummies: | |
name: Run solverdummies | |
runs-on: ubuntu-latest | |
container: | |
image: precice/precice:nightly | |
options: --user root | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v2 | |
- name: Install Dependencies | |
run: | | |
apt-get -qq update | |
apt-get -qq install software-properties-common python3-dev python3-pip python3.12-venv git apt-utils pkg-config | |
rm -rf /var/lib/apt/lists/* | |
- name: Create venv | |
run: | | |
python3 -m venv .venv | |
- name: Activate venv | |
# see https://stackoverflow.com/a/74669486 | |
run: | | |
. .venv/bin/activate | |
echo PATH=$PATH >> $GITHUB_ENV | |
- name: Install bindings | |
run: pip3 install . | |
- name: Check whether preCICE was built with MPI # reformat version information as a dict and check whether preCICE was compiled with MPI | |
run: python3 -c "import precice; assert({item.split('=')[0]:item.split('=')[-1] for item in str(precice.get_version_information()).split(';')}['PRECICE_FEATURE_MPI_COMMUNICATION']=='Y')" | |
- name: Run solverdummies | |
run: | | |
cd examples/solverdummy/ | |
python3 solverdummy.py precice-config.xml SolverOne & python3 solverdummy.py precice-config.xml SolverTwo |