clamp reduction_factor and add it to TabulatedRatingCurve #703
Workflow file for this run
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
name: Ribasim Python Tests | |
on: | |
push: | |
branches: [main] | |
paths-ignore: [".teamcity/**"] | |
tags: ["*"] | |
pull_request: | |
merge_group: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
test: | |
name: Python ${{ matrix.python_version }} - ${{ matrix.os }} - ${{ matrix.arch }} | |
runs-on: ${{ matrix.os }} | |
defaults: | |
run: | |
shell: bash -l {0} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: | |
- ubuntu-latest | |
- macOS-latest | |
- windows-latest | |
python_version: | |
- "3.9" | |
- "3.10" | |
- "3.11" | |
arch: | |
- x86 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Micromamba | |
uses: mamba-org/setup-micromamba@v1 | |
with: | |
cache-downloads: true | |
cache-environment: true | |
environment-file: ./environment.yml | |
create-args: >- | |
python=${{ matrix.python_version }} | |
- name: Install ribasim | |
run: pip install --editable python/ribasim | |
- name: Install ribasim_testmodels | |
run: pip install --editable python/ribasim_testmodels | |
- name: Run tests | |
run: pytest --cov=ribasim --cov-report=xml python/ribasim/tests | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v3 |