Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test Ribasim Python with multi environment feature #1285

Merged
merged 3 commits into from
Mar 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/core_testmodels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
cache-registries: "true"
- uses: prefix-dev/[email protected]
with:
pixi-version: "v0.15.2"
pixi-version: "latest"
- name: Prepare pixi
run: pixi run install-ci
- name: Run testmodels with Ribasim Core
Expand Down
27 changes: 10 additions & 17 deletions .github/workflows/python_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,26 +20,19 @@ jobs:
- ubuntu-latest
- macOS-latest
- windows-latest
python-version:
- "3.10"
- "3.11"
- "3.12"
pixi-environment:
- py312
- py311
- py310
steps:
- uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
- uses: prefix-dev/[email protected]
with:
python-version: "${{ matrix.python-version }}"

- name: Install test dependencies
run: |
pip install --editable "python/ribasim_testmodels"
pip install --editable "python/ribasim[tests]"

- name: Run tests
run: pytest --numprocesses=auto --cov=ribasim --cov-report=xml python/ribasim/tests

pixi-version: "latest"
- name: Prepare pixi
run: pixi run --environment ${{ matrix.pixi-environment }} install-ci
- name: Test Ribasim Python
run: pixi run --environment ${{ matrix.pixi-environment }} test-ribasim-python-cov
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
Expand Down
Loading
Loading