From cbe9e36f912fd88f9b8cf94df21fd542304d9f0a Mon Sep 17 00:00:00 2001 From: BenjaminRodenberg Date: Fri, 23 Apr 2021 17:31:06 +0200 Subject: [PATCH 1/4] Adds a test running the solverdummies. --- .github/workflows/run-solverdummy.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/run-solverdummy.yml diff --git a/.github/workflows/run-solverdummy.yml b/.github/workflows/run-solverdummy.yml new file mode 100644 index 00000000..71ee6e24 --- /dev/null +++ b/.github/workflows/run-solverdummy.yml @@ -0,0 +1,26 @@ +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 + run: + python3 + - name: Run solverdummies + run: | + cd solverdummies/ + python3 solverdummy.py precice-config.xml SolverOne MeshOne & python3 solverdummy.py precice-config.xml SolverTwo MeshTwo From a1221c374a934c8d82ff00836cea16ffdcc9e112 Mon Sep 17 00:00:00 2001 From: Benjamin Rodenberg Date: Fri, 23 Apr 2021 17:41:25 +0200 Subject: [PATCH 2/4] Update run-solverdummy.yml --- .github/workflows/run-solverdummy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/run-solverdummy.yml b/.github/workflows/run-solverdummy.yml index 71ee6e24..99f6952e 100644 --- a/.github/workflows/run-solverdummy.yml +++ b/.github/workflows/run-solverdummy.yml @@ -22,5 +22,5 @@ jobs: python3 - name: Run solverdummies run: | - cd solverdummies/ + cd solverdummy/ python3 solverdummy.py precice-config.xml SolverOne MeshOne & python3 solverdummy.py precice-config.xml SolverTwo MeshTwo From a108675fdb72e5e50f103c4bef8279f401d004f9 Mon Sep 17 00:00:00 2001 From: Benjamin Rodenberg Date: Fri, 23 Apr 2021 18:10:02 +0200 Subject: [PATCH 3/4] Add statement for MPI check. Commit failing version to check if this triggers the action. --- .github/workflows/run-solverdummy.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/run-solverdummy.yml b/.github/workflows/run-solverdummy.yml index 99f6952e..90470ee6 100644 --- a/.github/workflows/run-solverdummy.yml +++ b/.github/workflows/run-solverdummy.yml @@ -17,9 +17,8 @@ jobs: rm -rf /var/lib/apt/lists/* - name: Install bindings run: pip3 install --user . - - name: Check whether preCICE was built with MPI - run: - python3 + - 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']=='N')" - name: Run solverdummies run: | cd solverdummy/ From 06049f5d76fb245fe0d9e420724e4422302964dc Mon Sep 17 00:00:00 2001 From: Benjamin Rodenberg Date: Fri, 23 Apr 2021 18:43:51 +0200 Subject: [PATCH 4/4] Fix test --- .github/workflows/run-solverdummy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/run-solverdummy.yml b/.github/workflows/run-solverdummy.yml index 90470ee6..c59484ee 100644 --- a/.github/workflows/run-solverdummy.yml +++ b/.github/workflows/run-solverdummy.yml @@ -18,7 +18,7 @@ jobs: - 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']=='N')" + 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/