-
Notifications
You must be signed in to change notification settings - Fork 5
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 #79 from unifhy-org/release-v0.1.0
Release v0.1.0
- Loading branch information
Showing
1,125 changed files
with
229,094 additions
and
60,523 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
name: Advanced tests | ||
|
||
on: | ||
pull_request: | ||
types: [ready_for_review] | ||
branches: [main] | ||
|
||
jobs: | ||
|
||
run-basic-tests: | ||
|
||
strategy: | ||
matrix: | ||
os: [ubuntu-latest, macos-latest] | ||
python-version: [3.7, 3.8, 3.9] | ||
fail-fast: false | ||
|
||
runs-on: ${{ matrix.os }} | ||
|
||
defaults: | ||
run: | ||
shell: bash -l {0} | ||
|
||
steps: | ||
|
||
# check out PR HEAD commit | ||
- name: check out PR HEAD commit | ||
uses: actions/checkout@v2 | ||
with: | ||
ref: ${{ github.event.pull_request.head.sha }} | ||
|
||
# set up a conda environment | ||
- name: set up miniconda environment | ||
uses: conda-incubator/setup-miniconda@v2 | ||
with: | ||
activate-environment: testing-env | ||
python-version: ${{ matrix.python-version }} | ||
auto-update-conda: true | ||
mamba-version: "*" | ||
channels: conda-forge | ||
channel-priority: true | ||
|
||
# install dependencies on conda environment | ||
- name: install package dependencies | ||
run: | | ||
mamba install udunits2=2.2.25 | ||
mamba install --file=requirements.txt | ||
# build dummy components required for tests | ||
- name: install Fortran compiler (linux) | ||
if: matrix.os == 'ubuntu-latest' | ||
run: | | ||
mamba install gfortran_impl_linux-64 | ||
- name: install Fortran compiler (macos) | ||
if: matrix.os == 'macos-latest' | ||
run: | | ||
mamba install gfortran_impl_osx-64 | ||
- name: build dummy C and Fortran components | ||
run: | | ||
mamba install cython | ||
(cd ./tests/components && make) | ||
# install package | ||
- name: install package | ||
run: | | ||
pip install -e . | ||
# run tests | ||
- name: run advanced test suite | ||
run: | | ||
(cd ./tests && python run_all_tests.py) |
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,57 @@ | ||
name: Basic tests | ||
|
||
on: | ||
pull_request: | ||
types: [ready_for_review] | ||
branches: [dev] | ||
|
||
jobs: | ||
|
||
run-basic-tests: | ||
|
||
strategy: | ||
matrix: | ||
os: [ubuntu-latest, macos-latest] | ||
python-version: [3.7, 3.8, 3.9] | ||
fail-fast: false | ||
|
||
runs-on: ${{ matrix.os }} | ||
|
||
defaults: | ||
run: | ||
shell: bash -l {0} | ||
|
||
steps: | ||
|
||
# check out PR HEAD commit | ||
- name: check out PR HEAD commit | ||
uses: actions/checkout@v2 | ||
with: | ||
ref: ${{ github.event.pull_request.head.sha }} | ||
|
||
# set up a conda environment | ||
- name: set up miniconda environment | ||
uses: conda-incubator/setup-miniconda@v2 | ||
with: | ||
activate-environment: testing-env | ||
python-version: ${{ matrix.python-version }} | ||
auto-update-conda: true | ||
mamba-version: "*" | ||
channels: conda-forge | ||
channel-priority: true | ||
|
||
# install dependencies on conda environment | ||
- name: install package dependencies | ||
run: | | ||
mamba install udunits2=2.2.25 | ||
mamba install --file=requirements.txt | ||
# install package | ||
- name: install package | ||
run: | | ||
pip install -e . | ||
# run tests | ||
- name: run basic test suite | ||
run: | | ||
(cd ./tests && python run_basic_tests.py) |
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,99 @@ | ||
name: Build docs | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
branch: | ||
description: 'branch where to source and build documentation' | ||
required: false | ||
default: 'dev' | ||
release: | ||
description: 'release version tag (#.#.#)' | ||
required: false | ||
default: '' | ||
|
||
jobs: | ||
|
||
checkout-components: | ||
|
||
strategy: | ||
matrix: | ||
components: | ||
- artemis | ||
- gr4 | ||
- rfm | ||
- smart | ||
fail-fast: false | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: checkout ${{ matrix.components }} component for unifhy | ||
uses: actions/checkout@v2 | ||
with: | ||
repository: unifhy-org/unifhycontrib-${{ matrix.components }} | ||
|
||
- name: store ${{ matrix.components }} as artifact | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: ${{ matrix.components }} | ||
path: unifhycontrib/${{ matrix.components }} | ||
|
||
build-docs: | ||
|
||
needs: checkout-components | ||
|
||
runs-on: ubuntu-latest | ||
|
||
defaults: | ||
run: | ||
shell: bash -l {0} | ||
|
||
steps: | ||
|
||
- name: checkout framework repository | ||
uses: actions/checkout@v2 | ||
with: | ||
ref: ${{ github.event.inputs.branch }} | ||
|
||
- name: bring back all component artifacts | ||
uses: actions/download-artifact@v2 | ||
with: | ||
path: unifhycontrib | ||
|
||
- name: set up miniconda environment | ||
uses: conda-incubator/setup-miniconda@v2 | ||
with: | ||
activate-environment: building-docs-env | ||
python-version: ${{ matrix.python-version }} | ||
auto-update-conda: true | ||
mamba-version: "*" | ||
channels: conda-forge | ||
channel-priority: true | ||
|
||
- name: install dependencies for framework and its documentation | ||
run: | | ||
mamba install --file=requirements.txt | ||
mamba install --file=requirements-docs.txt | ||
- name: setup git user info | ||
run: | | ||
git config --global user.email "github-actions[bot]@users.noreply.github.com" | ||
git config --global user.name "github-actions[bot]" | ||
- name: fetch remote tags | ||
run: | | ||
git fetch --tags | ||
- name: build docs | ||
run: | | ||
if [[ ! -z ${{ github.event.inputs.release }} ]]; then export VERSION_RELEASE=${{ github.event.inputs.release }}; fi | ||
cd ${{ github.workspace }}/docs | ||
make github_html | ||
- name: commit and push built docs (if changes) | ||
run: | | ||
cd ${{ github.workspace }}/docs | ||
added=$(git add --all --verbose) | ||
if [[ ! -z $added ]]; then git commit -m "update html documentation"; fi | ||
if [[ ! -z $added ]]; then git push https://${{ github.actor }}:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git ${{ github.event.inputs.branch }}; fi |
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,18 +1,24 @@ | ||
Community Model for the Terrestrial Water Cycle | ||
----------------------------------------------- | ||
Unified Framework for Hydrology | ||
------------------------------- | ||
|
||
.. image:: https://badge.fury.io/py/cm4twc.svg | ||
:target: https://pypi.python.org/pypi/cm4twc | ||
.. image:: https://img.shields.io/pypi/v/unifhy?style=flat-square&color=00b0f0 | ||
:target: https://pypi.python.org/pypi/unifhy | ||
:alt: PyPI Version | ||
.. image:: https://zenodo.org/badge/234523723.svg | ||
.. image:: https://img.shields.io/badge/dynamic/json?url=https://zenodo.org/api/records/4726695&label=doi&query=doi&style=flat-square&color=00b0f0 | ||
:target: https://zenodo.org/badge/latestdoi/234523723 | ||
:alt: DOI | ||
.. image:: https://img.shields.io/badge/License-BSD%203--Clause-blue.svg | ||
.. image:: https://img.shields.io/github/license/unifhy-org/unifhy?style=flat-square&color=00b0f0 | ||
:target: https://opensource.org/licenses/BSD-3-Clause | ||
:alt: Licence | ||
.. image:: https://img.shields.io/badge/fair-%E2%97%8F%20%20%E2%97%8F%20%20%E2%97%8F%20%20%E2%97%8F%20%20%E2%97%8B-yellow?style=flat-square | ||
:target: https://fair-software.eu | ||
:alt: FAIR Software Compliance | ||
.. image:: https://img.shields.io/github/workflow/status/unifhy-org/unifhy/Basic%20tests?style=flat-square&label=tests | ||
:target: https://github.com/unifhy-org/unifhy/actions/workflows/basic_tests.yml | ||
:alt: Tests Status | ||
|
||
The Python package `cm4twc` (Community Model for the Terrestrial Water | ||
Cycle) is a hydrological modelling framework which combines interchangeable | ||
modelling components for the surface layer, subsurface, and open water | ||
parts of the terrestrial water cycle. It is designed to foster collaborations | ||
between land surface and hydrological modelling communities. | ||
The Python package `unifhy` (Unified Framework for Hydrology) is a hydrological | ||
modelling framework which combines interchangeable modelling components for the | ||
surface layer, subsurface, and open water parts of the terrestrial water cycle. | ||
It is designed to foster collaborations between land surface, hydrological, and | ||
groundwater modelling communities. |
Oops, something went wrong.