-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into docs-how-to-add-a-parameter
- Loading branch information
Showing
62 changed files
with
1,807 additions
and
467 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
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 |
---|---|---|
|
@@ -7,6 +7,8 @@ on: | |
|
||
env: | ||
CARGO_TERM_COLOR: always | ||
# Make sure CI fails on all warnings, including Clippy lints | ||
RUSTFLAGS: "-Dwarnings" | ||
|
||
jobs: | ||
build: | ||
|
@@ -17,7 +19,9 @@ jobs: | |
- uses: actions/checkout@v4 | ||
with: | ||
submodules: true | ||
|
||
- uses: swatinem/rust-cache@v2 | ||
- name: Run Clippy | ||
run: cargo clippy --all-targets --features highs,cbc --all --exclude ipm-simd | ||
- name: Install latest mdbook | ||
run: | | ||
tag=$(curl 'https://api.github.com/repos/rust-lang/mdbook/releases/latest' | jq -r '.tag_name') | ||
|
@@ -27,9 +31,9 @@ jobs: | |
echo "$(pwd)/bin" >> $GITHUB_PATH | ||
- name: Build | ||
run: cargo build --verbose --features highs --workspace --exclude ipm-simd --exclude pywr-python | ||
run: cargo build --verbose --features highs,cbc --workspace --exclude ipm-simd --exclude pywr-python | ||
- name: Run tests | ||
run: cargo test --features highs | ||
run: cargo test --features highs,cbc | ||
- name: Run mdbook tests | ||
run: mdbook test ./pywr-book | ||
|
||
|
@@ -41,6 +45,7 @@ jobs: | |
- uses: actions/checkout@v4 | ||
with: | ||
submodules: true | ||
- uses: swatinem/rust-cache@v2 | ||
- name: Build | ||
run: cargo build --verbose --no-default-features --package [email protected] | ||
- name: Run tests | ||
|
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
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
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 |
---|---|---|
|
@@ -3,16 +3,16 @@ name = "pywr" | |
version = "2.0.0beta" | ||
description = "" | ||
authors = [ | ||
{name="James Tomlinson", email="[email protected]>"} | ||
{ name = "James Tomlinson", email = "[email protected]>" } | ||
] | ||
readme = "README.md" | ||
requires-python = ">=3.9" | ||
license = "MIT OR Apache-2.0" | ||
dependencies = [ | ||
"pandas", | ||
"polars", | ||
"pyarrow", | ||
"click" | ||
"pandas", | ||
"polars", | ||
"pyarrow", | ||
"click" | ||
] | ||
|
||
[build-system] | ||
|
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
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
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
Oops, something went wrong.