-
Notifications
You must be signed in to change notification settings - Fork 50
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 #142 from ec-jrc/development
Replacement of cython with numba (routing)
- Loading branch information
Showing
38 changed files
with
630 additions
and
548 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 |
---|---|---|
@@ -1,4 +1,3 @@ | ||
[run] | ||
omit = | ||
src/lisflood/hydrological_modules/compile_kinematic_wave_parallel_tools.py | ||
tests/* |
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,47 @@ | ||
name: Lisflood OS Unit Tests | ||
|
||
on: [push] | ||
|
||
jobs: | ||
tests: | ||
runs-on: ubuntu-20.04 | ||
strategy: | ||
max-parallel: 5 | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: conda-incubator/setup-miniconda@v2 | ||
with: | ||
auto-update-conda: true | ||
python-version: 3.7 | ||
- name: Conda info | ||
shell: bash -el {0} | ||
run: conda info | ||
- name: Install python and gcc | ||
shell: bash -el {0} | ||
run: | | ||
conda install -c conda-forge python=3.7 | ||
conda install -c conda-forge gcc=12.1.0 | ||
- name: Install gdal and pcraster | ||
shell: bash -el {0} | ||
run: | | ||
conda install -c conda-forge gdal pcraster | ||
- name: Install dependencies | ||
shell: bash -el {0} | ||
run: | | ||
pip install -r requirements.txt | ||
- name: Install lisflood-module | ||
shell: bash -el {0} | ||
run: | | ||
pip install . | ||
- name: Check installation | ||
shell: bash -el {0} | ||
run: | | ||
gdal-config --version | ||
python -c "from osgeo import gdal; print(gdal.__version__)" | ||
conda list | ||
- name: Test with pytest | ||
shell: bash -el {0} | ||
run: | | ||
pip install pytest pytest-cov | ||
pytest |
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,4 +1,3 @@ | ||
include src/lisflood/hydrological_modules/kinematic_wave_parallel_tools.pyx | ||
include requirements.txt | ||
include *.xml | ||
include VERSION |
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 +1 @@ | ||
4.2.0 | ||
4.3.0 |
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.