-
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #105 from precice/python-bindings-v2.2.1.1
Release v2.2.1.1
- Loading branch information
Showing
11 changed files
with
104 additions
and
41 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: Update docker image | ||
|
||
on: | ||
workflow_dispatch: # Trigger by hand from the UI | ||
push: | ||
branches: | ||
- develop | ||
|
||
jobs: | ||
build-and-release-docker-image: | ||
name: Builds a dockerimage with the python bindings of preCICE | ||
runs-on: ubuntu-latest | ||
env: | ||
docker_username: precice | ||
steps: | ||
- name: Get branch name | ||
if: github.event_name != 'pull_request' | ||
shell: bash | ||
run: echo "branch=$(echo ${GITHUB_REF#refs/heads/} | tr / -)" >> $GITHUB_ENV | ||
- name: Checkout Repository | ||
uses: actions/checkout@v2 | ||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v1 | ||
- name: Login to DockerHub | ||
uses: docker/login-action@v1 | ||
with: | ||
username: ${{ env.docker_username }} | ||
password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
- name: Build and push Dockerfile | ||
uses: docker/build-push-action@v2 | ||
with: | ||
push: true | ||
file: "./tools/releasing/packaging/docker/Dockerfile" | ||
tags: ${{ env.docker_username }}/python-bindings:${{ env.branch }},${{ env.docker_username }}/python-bindings:latest | ||
build-args: | | ||
branch=${{ env.branch }} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,8 @@ on: | |
push: | ||
branches: | ||
- "*" | ||
schedule: | ||
- cron: '0 4 * * 1' # Schedule it every Sunday | ||
|
||
jobs: | ||
build_spack: | ||
|
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file was deleted.
Oops, something went wrong.
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# Dockerfile to build a ubuntu image containing the installed Debian package of a release | ||
ARG branch=develop | ||
ARG from=precice/precice:${branch} | ||
FROM $from | ||
|
||
USER root | ||
# Installing necessary dependencies | ||
RUN apt-get -qq update && apt-get -qq install \ | ||
apt-utils && \ | ||
apt-get -qq install \ | ||
software-properties-common \ | ||
python3-dev \ | ||
python3-pip && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
USER precice | ||
|
||
# Upgrade pip to newest version (pip version from 18.04 apt-get is outdated) | ||
RUN python3 -m pip install --user --upgrade pip | ||
|
||
# Rebuild image if force_rebuild after that command | ||
ARG CACHEBUST | ||
ARG branch=develop | ||
|
||
# Builds the precice python bindings for python3 | ||
RUN pip3 install --user git+https://github.com/precice/python-bindings.git@$branch |