diff --git a/.github/workflows/run-solverdummy.yml b/.github/workflows/run-solverdummy.yml new file mode 100644 index 00000000..c59484ee --- /dev/null +++ b/.github/workflows/run-solverdummy.yml @@ -0,0 +1,25 @@ +name: Run preCICE Solverdummies +on: + push: + +jobs: + run_solverdummies: + name: Run solverdummies + runs-on: ubuntu-latest + container: precice/precice + 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 git apt-utils + rm -rf /var/lib/apt/lists/* + - name: Install bindings + run: pip3 install --user . + - 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_MPICommunication']=='Y')" + - name: Run solverdummies + run: | + cd solverdummy/ + python3 solverdummy.py precice-config.xml SolverOne MeshOne & python3 solverdummy.py precice-config.xml SolverTwo MeshTwo