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

Use pixi task cache #1407

Merged
merged 10 commits into from
Apr 21, 2024
9 changes: 5 additions & 4 deletions pixi.toml
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ initialize-julia = { depends_on = [
# Docs
build-julia-docs = { cmd = "julia --project docs/make.jl", depends_on = [
"initialize-julia",
] }
quartodoc-build = { cmd = "quartodoc build && rm objects.json", cwd = "docs" }
], inputs = ["core", "docs/make.jl"] , outputs = ["docs/build"]}
quartodoc-build = { cmd = "quartodoc build && rm objects.json", cwd = "docs" , inputs = ["objects.json"], outputs = ["docs"]}
Jingru923 marked this conversation as resolved.
Show resolved Hide resolved
quarto-preview = { cmd = "quarto preview docs", depends_on = [
"quartodoc-build",
"generate-testmodels",
Expand Down Expand Up @@ -99,12 +99,13 @@ test-ribasim-core = { cmd = "julia --project=core --eval 'using Pkg; Pkg.test()'
test-ribasim-core-cov = { cmd = "julia --project=core --eval 'using Pkg; Pkg.test(coverage=true, julia_args=[\"--check-bounds=yes\"])'", depends_on = [
"generate-testmodels",
] }
generate-testmodels = "python utils/generate-testmodels.py"
generate-testmodels = { cmd = "python utils/generate-testmodels.py", inputs = ["python/ribasim","python/ribasim_testmodels",], outputs = ["generated_testmodels"]}
#generate-testmodels = "python utils/generate-testmodels.py"
Jingru923 marked this conversation as resolved.
Show resolved Hide resolved
tests = { depends_on = ["lint", "test-ribasim-python", "test-ribasim-core"] }
# Codegen
codegen = { cmd = "julia --project utils/gen_python.jl && ruff format python/ribasim/ribasim/schemas.py", depends_on = [
"initialize-julia",
] }
] , inputs = ["python/ribasim","python/ribasim_testmodels"], outputs = ["generated_testmodels"]}
Jingru923 marked this conversation as resolved.
Show resolved Hide resolved
# Publish
build-ribasim-python-wheel = { cmd = "rm --recursive --force dist && python -m build && twine check dist/*", cwd = "python/ribasim" }
build-ribasim-api-wheel = { cmd = "rm --recursive --force dist && python -m build && twine check dist/*", cwd = "python/ribasim_api" }
Expand Down
Loading