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

Add dependency on testmodel for build binary tasks #672

Merged
merged 1 commit into from
Oct 17, 2023
Merged
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
19 changes: 8 additions & 11 deletions pixi.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,7 @@ install-without-pre-commit = { depends_on = [
"install-ribasim-testmodels",
"install-quartodoc",
] }
install = { depends_on = [
"install-without-pre-commit",
"install-pre-commit",
] }
install = { depends_on = ["install-without-pre-commit", "install-pre-commit"] }
# Docs
instantiate-julia-docs = "julia --project=docs -e \"using Pkg; Pkg.instantiate()\""
build-julia-docs = { cmd = "julia --project=docs docs/make.jl", depends_on = [
Expand All @@ -55,8 +52,12 @@ lint = { depends_on = [
"mypy-ribasim-api",
] }
# Build
build-ribasim-cli = "cd build/create_binaries && julia --project create_app.jl"
build-libribasim = "cd build/create_binaries && julia --project create_lib.jl"
build-ribasim-cli = { cmd = "cd build/create_binaries && julia --project create_app.jl", depends_on = [
"generate-testmodels",
] }
build-libribasim = { cmd = "cd build/create_binaries && julia --project create_lib.jl", depends_on = [
"generate-testmodels",
] }
build = { depends_on = ["build-ribasim-cli", "build-libribasim"] }
# Test
test-ribasim-python = "pytest --numprocesses=auto python/ribasim/tests"
Expand All @@ -66,11 +67,7 @@ test-ribasim-core = { cmd = "julia --project=core --eval 'using Pkg; Pkg.instant
"generate-testmodels",
] }
generate-testmodels = "python utils/generate-testmodels.py"
tests = { depends_on = [
"lint",
"test-ribasim-python",
"test-ribasim-core",
] }
tests = { depends_on = ["lint", "test-ribasim-python", "test-ribasim-core"] }
# Codegen
generate-schema = "julia --project=docs docs/gen_schema.jl"
generate-python = """\
Expand Down