Skip to content
Snippets Groups Projects
Commit f624b2c3 authored by Johanna Zijderveld's avatar Johanna Zijderveld
Browse files

change profiler tasks and add feature dependencies

parent 9126ceec
No related branches found
No related tags found
1 merge request!24Pixi
Pipeline #197819 failed
......@@ -36,10 +36,7 @@ run coverage:
run profiler:
script:
- pip install memray pyinstrument
- python profiling/graphene.py
- memray stats memoryProfile.bin
- memray summary memoryProfile.bin
- pixi run profiler
artifacts:
paths:
- timeProfile.html
......
This diff is collapsed.
......@@ -87,6 +87,11 @@ pytest-regressions = "*"
pytest-repeat = ">=0.9.3,<0.10"
# pytest-ruff is not on conda
[tool.pixi.feature.docs.dependencies]
sphinx-togglebutton = "*"
sphinx-copybutton = "*"
make = "*"
[tool.pixi.feature.minimal.dependencies]
python = "~=3.10"
numpy = "~=1.25.0"
......@@ -105,6 +110,16 @@ numpy = ">=1.26"
scipy = ">=1.13"
sympy = ">=1.4"
[tool.pixi.feature.publish.dependencies]
hatch = ">=1.7.0,<1.13"
hatch-vcs = ">=0.4.0,<0.5"
[tool.pixi.feature.profiler.dependencies]
pyinstrument = "*"
[tool.pixi.feature.profiler.pypi-dependencies]
memray = "*"
[tool.pixi.pypi-dependencies]
skunk = { git = "https://github.com/akhmerov/skunk.git" }
pytest-ruff = ">=0.4.1,<0.5"
......@@ -123,6 +138,7 @@ meanfi = { path = ".", editable = true }
[tool.pixi.environments]
default = { solve-group = "default" }
docs = { features = ["docs"], solve-group = "mid" }
profiler = { features = ["profiler"], solve-group = "mid" }
minimal = { features = ["minimal", "test"], solve-group = "minimal" }
mid = { features = ["mid", "test"], solve-group = "mid" }
latest = { features = ["latest", "test"], solve-group = "default" }
......@@ -143,6 +159,9 @@ tests-all = { depends-on = ["tests-minimal", "tests-mid", "tests-latest"] }
[tool.pixi.feature.docs.tasks]
docs-build = "python -c \"from matplotlib import pyplot\" && make -C docs/ html SPHINXOPTS=\"-WT --keep-going -n\""
[tool.pixi.feature.profiler.tasks]
profiler = "python profiling/graphene.py\" && memray stats memoryProfile.bin\" && memray summary memoryProfile.bin\""
[tool.pixi.feature.precommit.tasks]
git = "git"
pre-commit = "pre-commit"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment