Conversation
There was a problem hiding this comment.
Removing this test is good. As far as I undestand the corresponding github actions test is this one:
python-bindings/.github/workflows/build-and-test.yml
Lines 71 to 96 in 6e54396
I still see a minor problem here: The old test on travis uses a generic docker image as basis (probably some ubuntu?). The github-actions-based test uses precice/ci-ubuntu-1804. If possible, please use ubuntu:20.04 or a similarly simple image as basis, since otherwise this contradicts the idea of mocking a bit. You can use the fenics-adapter mock test as a reference. Here, container: quay.io/fenicsproject/stable:current provides fenics, but all the other dependencies of preCICE and preCICE itself can be ignored and are therefore not present.
|
I see the problem with using the container In my understanding this requires the container to have the preCICE compiled or at least the code be present there. Is this correct? If the GitHub action is run on just a ubuntu container then the following error is seen: |
The important part is here: python-bindings/.github/workflows/build-and-test.yml Lines 84 to 88 in 6e54396 We clone precice, since we need If we then want to build test, we do not link against the real preCICE (it does not exist on the system), but just provide the fake Lines 72 to 76 in 6e54396 I hope this explanation helps. It's not documented well and I assume must be very confusing, if you don't know where you have to look. |
BenjaminRodenberg
left a comment
There was a problem hiding this comment.
Looks good. I will quickly check and apply the minor things I've spotted and then directly merge this PR.
| - name: Install & upgrade pip3 and install OpenMPI | ||
| run: | | ||
| apt-get -yy update | ||
| apt-get install -y python3-pip | ||
| rm -rf /var/lib/apt/lists/* | ||
| sudo apt-get -yy update | ||
| sudo apt-get install -y python3-pip libopenmpi-dev | ||
| sudo rm -rf /var/lib/apt/lists/* |
There was a problem hiding this comment.
Related to #101: We should be able to remove the mpi part here.
But for the current state everything is fine.
There was a problem hiding this comment.
Okay, will keep this dependency problem in mind.
This PR removes Travis CI as the mock tests run in the CI are now run as a GitHub Actions job