-
-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove Travis CI #103
Remove Travis CI #103
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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
setup_test: | |
name: Run setup test | |
runs-on: ubuntu-latest | |
container: precice/ci-ubuntu-1804 | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v2 | |
- name: Install & upgrade pip3 | |
run: | | |
apt-get -yy update | |
apt-get install -y python3-pip | |
rm -rf /var/lib/apt/lists/* | |
pip3 install --upgrade --user pip | |
- name: Checkout precice and make required files discoverable | |
run: | | |
git clone https://github.com/precice/precice.git precice-core | |
mkdir -p precice | |
cp precice-core/src/precice/SolverInterface.hpp precice/SolverInterface.hpp | |
- name: Install dependencies | |
run: | | |
pip3 install --user toml | |
python3 -c 'import toml; c = toml.load("pyproject.toml"); print("\n".join(c["build-system"]["requires"]))' | pip3 install -r /dev/stdin | |
- name: Run setup test | |
run: | | |
export CFLAGS=-I$GITHUB_WORKSPACE | |
python3 setup.py test |
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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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