-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4cb09ce
commit 5154f11
Showing
3 changed files
with
80 additions
and
77 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,62 +1,63 @@ | ||
name: Tests with HydroMT dev | ||
# Uncomment when we move to HydroMT v1 | ||
# name: Tests with HydroMT dev | ||
|
||
on: | ||
# trigger weekly on monday at 00:00 UTC | ||
schedule: | ||
- cron: '0 0 * * 1' | ||
push: | ||
branches: [main] | ||
paths: | ||
- .github/workflows/tests_dev.yml | ||
- tests/* | ||
- hydromt_sfincs/* | ||
- pyproject.toml | ||
pull_request: | ||
branches: [main] | ||
paths: | ||
- .github/workflows/tests_dev.yml | ||
- tests/* | ||
- hydromt_sfincs/* | ||
- pyproject.toml | ||
# on: | ||
# # trigger weekly on monday at 00:00 UTC | ||
# schedule: | ||
# - cron: '0 0 * * 1' | ||
# push: | ||
# branches: [main] | ||
# paths: | ||
# - .github/workflows/tests_dev.yml | ||
# - tests/* | ||
# - hydromt_sfincs/* | ||
# - pyproject.toml | ||
# pull_request: | ||
# branches: [main] | ||
# paths: | ||
# - .github/workflows/tests_dev.yml | ||
# - tests/* | ||
# - hydromt_sfincs/* | ||
# - pyproject.toml | ||
|
||
jobs: | ||
build: | ||
defaults: | ||
run: | ||
shell: bash -l {0} | ||
strategy: | ||
fail-fast: false | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 30 | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ matrix.python-version }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
steps: | ||
# jobs: | ||
# build: | ||
# defaults: | ||
# run: | ||
# shell: bash -l {0} | ||
# strategy: | ||
# fail-fast: false | ||
# runs-on: ubuntu-latest | ||
# timeout-minutes: 30 | ||
# concurrency: | ||
# group: ${{ github.workflow }}-${{ matrix.python-version }}-${{ github.ref }} | ||
# cancel-in-progress: true | ||
# steps: | ||
|
||
- uses: actions/checkout@v3 | ||
# - uses: actions/checkout@v3 | ||
|
||
- uses: actions/setup-python@v5 | ||
id: pip | ||
with: | ||
# caching, see https://github.com/actions/setup-python/blob/main/docs/advanced-usage.md#caching-packages | ||
cache: 'pip' | ||
python-version: '3.9' # 3.9 is not supported by last released version of hydromt | ||
cache-dependency-path: pyproject.toml | ||
# - uses: actions/setup-python@v5 | ||
# id: pip | ||
# with: | ||
# # caching, see https://github.com/actions/setup-python/blob/main/docs/advanced-usage.md#caching-packages | ||
# cache: 'pip' | ||
# python-version: '3.9' # 3.9 is not supported by last released version of hydromt | ||
# cache-dependency-path: pyproject.toml | ||
|
||
# true if cache-hit occurred on the primary key | ||
- name: Cache hit | ||
run: echo '${{ steps.pip.outputs.cache-hit }}' | ||
# # true if cache-hit occurred on the primary key | ||
# - name: Cache hit | ||
# run: echo '${{ steps.pip.outputs.cache-hit }}' | ||
|
||
# build environment with pip | ||
- name: Install hydromt-sfincs | ||
run: | | ||
pip install --upgrade pip | ||
pip install .[test,examples] | ||
pip install git+https://github.com/Deltares/hydromt.git | ||
pip list | ||
# # build environment with pip | ||
# - name: Install hydromt-sfincs | ||
# run: | | ||
# pip install --upgrade pip | ||
# pip install .[test,examples] | ||
# pip install git+https://github.com/Deltares/hydromt.git | ||
# pip list | ||
|
||
# run test | ||
- name: Test | ||
run: | | ||
export NUMBA_DISABLE_JIT=1 | ||
python -m pytest --verbose | ||
# # run test | ||
# - name: Test | ||
# run: | | ||
# export NUMBA_DISABLE_JIT=1 | ||
# python -m pytest --verbose |
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