fix: Fix handling of zero loss in LossLink and WTW nodes. #531
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: 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 |