-
-
Notifications
You must be signed in to change notification settings - Fork 16
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 #122 from precice/fenics-adapter-v1.1.0
Release v1.1.0
- Loading branch information
Showing
20 changed files
with
228 additions
and
101 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,15 @@ | ||
name: autopep8 | ||
on: push | ||
jobs: | ||
autopep8: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: autopep8 | ||
id: autopep8 | ||
uses: peter-evans/autopep8@v1 | ||
with: | ||
args: --recursive --diff --aggressive --aggressive --exit-code --ignore E402 --max-line-length 120 . | ||
- name: Fail if autopep8 made changes | ||
if: ${{ steps.autopep8.outputs.exit-code == 2 }} | ||
run: exit 1 |
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,60 @@ | ||
name: Run preCICE Tutorials | ||
on: | ||
push: | ||
branches: | ||
- master | ||
- develop | ||
pull_request: | ||
paths: | ||
- '**' | ||
|
||
jobs: | ||
run_ht_simple: | ||
name: Run HT, simple | ||
runs-on: ubuntu-latest | ||
container: precice/precice | ||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v2 | ||
- name: Install Dependencies & FEniCS | ||
run: | | ||
apt-get -qq update | ||
apt-get -qq install software-properties-common python3-dev python3-pip git apt-utils | ||
add-apt-repository -y ppa:fenics-packages/fenics | ||
apt-get -qq install --no-install-recommends fenics | ||
rm -rf /var/lib/apt/lists/* | ||
- name: Install adapter | ||
run: pip3 install --user . | ||
- name: Fix broken FEniCS installation (see https://fenicsproject.discourse.group/t/installing-python-package-with-fenics-dependency-breaks-fenics-installation/4476) | ||
run: pip3 uninstall -y fenics-ufl | ||
- name: Get tutorials | ||
run: git clone -b develop https://github.com/precice/tutorials.git | ||
- name: Run tutorial | ||
run: | | ||
cd tutorials/partitioned-heat-conduction/fenics | ||
python3 heat.py -d & python3 heat.py -n | ||
run_ht_complex: | ||
name: Run HT, complex | ||
runs-on: ubuntu-latest | ||
container: precice/precice | ||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v2 | ||
- name: Install Dependencies & FEniCS | ||
run: | | ||
apt-get -qq update | ||
apt-get -qq install software-properties-common python3-dev python3-pip git apt-utils | ||
add-apt-repository -y ppa:fenics-packages/fenics | ||
apt-get -qq install --no-install-recommends fenics | ||
rm -rf /var/lib/apt/lists/* | ||
- name: Install adapter | ||
run: pip3 install --user . | ||
- name: Fix broken FEniCS installation (see https://fenicsproject.discourse.group/t/installing-python-package-with-fenics-dependency-breaks-fenics-installation/4476) | ||
run: pip3 uninstall -y fenics-ufl | ||
- name: Get tutorials | ||
run: git clone -b develop https://github.com/precice/tutorials.git | ||
- name: Run tutorial | ||
run: | | ||
cd tutorials/partitioned-heat-conduction-complex/fenics | ||
python3 heat.py -d -i complex & python3 heat.py -n -i complex |
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 |
---|---|---|
@@ -1,22 +1,23 @@ | ||
## Guide to release new version of the FEniCS-preCICE adapter | ||
|
||
The developer who is releasing a new version of FEniCS-preCICE adapter is expected to follow this work flow | ||
Before starting this process make sure to check that all relevant changes are included in the `CHANGELOG.md`. The developer who is releasing a new version of FEniCS-preCICE adapter is expected to follow this workflow: | ||
|
||
1. If it does not already exist, create a release branch with the version number of the planned release. Use develop as base for the branch. `git checkout develop`; `git checkout -b release_vX.X.X`. Perform the following steps only on the release branch, if not indicated differently. | ||
1. If it does not already exist, create a release branch with the version number of the planned release. Use develop as base for the branch. `git checkout develop`; `git checkout -b fenics-adapter-vX.X.X`. Perform the following steps only on the release branch, if not indicated differently. | ||
|
||
2. [Open a Pull Request from the branch `release_vX.X.X` to `master`](https://github.com/precice/fenics-adapter/compare) named after the version (i.e. `Release v1.0.0`) and briefly describe the new features of the release in the PR description. | ||
2. [Open a Pull Request from the branch `fenics-adapter-vX.X.X` to `master`](https://github.com/precice/fenics-adapter/compare) named after the version (i.e. `Release v1.0.0`) and briefly describe the new features of the release in the PR description. | ||
|
||
a) Check `CHANGELOG.md`, if necessary, update `CHANGELOG.md` on `develop` and merge into `release_vX.X.X` | ||
|
||
b) Before merging the PR, make sure to bump the version in `CHANGELOG.md` on `release_vX.X.X` | ||
3. Bump the version in the following places: | ||
|
||
3. [Draft a New Release](https://github.com/precice/fenics-adapter/releases/new) in the `Releases` section of the repository page in a web browser. The release tag needs to be the exact version number (i.e.`v1.0.0` or `v1.0.0rc1`, compare to [existing tags](https://github.com/precice/fenics-adapter/tags)). Use `@target:master`. Release title is also the version number (i.e. `v1.0.0` or `v1.0.0rc1`, compare to [existing releases](https://github.com/precice/fenics-adapter/tags)). | ||
*Note:* If it is a pre-release then the option *This is a pre-release* needs to be selected at the bottom of the page. Use `@target:release_vX.X.X` for a pre-release, since we will never merge a pre-release into master. | ||
a) Before merging the PR, make sure to bump the version in `CHANGELOG.md` on `fenics-adapter-vX.X.X` | ||
b) There is no need to bump the version anywhere else, since we use the [python-versioneer](https://github.com/python-versioneer/python-versioneer/) for maintaining the version everywhere else. | ||
|
||
4. [Draft a New Release](https://github.com/precice/fenics-adapter/releases/new) in the `Releases` section of the repository page in a web browser. The release tag needs to be the exact version number (i.e.`v1.0.0` or `v1.0.0rc1`, compare to [existing tags](https://github.com/precice/fenics-adapter/tags)). Use `@target:master`. Release title is also the version number (i.e. `v1.0.0` or `v1.0.0rc1`, compare to [existing releases](https://github.com/precice/fenics-adapter/tags)). | ||
*Note:* If it is a pre-release then the option *This is a pre-release* needs to be selected at the bottom of the page. Use `@target:fenics-adapter-vX.X.X` for a pre-release, since we will never merge a pre-release into master. | ||
|
||
a) If a pre-release is made: Directly hit the "Publish release" button in your Release Draft. Now you can check the artifacts (e.g. release on [PyPI](https://pypi.org/project/fenicsprecice/#history)) of the release. *Note:* As soon as a new tag is created github actions will take care of deploying the new version on PyPI using [this workflow](https://github.com/precice/fenics-adapter/actions?query=workflow%3A%22Upload+Python+Package%22). | ||
|
||
b) If this is a "real" release: As soon as one approving review is made, merge the release PR (`release_vX.X.X`) into `master`. | ||
b) If this is a "real" release: As soon as one approving review is made, merge the release PR (`fenics-adapter-vX.X.X`) into `master`. | ||
|
||
4. Merge `master` into `develop` for synchronization of `develop`. | ||
5. Merge `master` into `develop` for synchronization of `develop`. | ||
|
||
5. If everything is in order up to this point then the new version can be released by hitting the "Publish release" button in your Release Draft. | ||
6. If everything is in order up to this point then the new version can be released by hitting the "Publish release" button in your Release Draft. |
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
Oops, something went wrong.