Skip to content

fix: Fix handling of zero loss in LossLink and WTW nodes. #531

fix: Fix handling of zero loss in LossLink and WTW nodes.

fix: Fix handling of zero loss in LossLink and WTW nodes. #531

Workflow file for this run

name: Rust (Windows)
on:
push:
branches: [ main ]
pull_request:
env:
CARGO_TERM_COLOR: always
# Make sure CI fails on all warnings, including Clippy lints
RUSTFLAGS: "-Dwarnings"
ACTIONS_RUNNER_DEBUG: true
ACTIONS_STEP_DEBUG: true
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: swatinem/rust-cache@v2
- name: Run Clippy
run: cargo clippy --all-targets --features highs,cbc
- name: Build
run: cargo build --verbose --features highs,cbc --workspace --exclude ipm-simd --exclude pywr-python
- name: Run tests
# Only test the library and binaries, not the docs
# There were some issues with the docs tests timing out on Windows CI
run: cargo test --features highs,cbc --verbose --lib --bins -- --test-threads=1