Skip to content

Commit 1de83ea

Browse files
committed
removing the conda environment detection support
1 parent ca323d2 commit 1de83ea

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

pixi.toml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,17 +29,18 @@ cu13 = { features = ["cu13"], solve-group = "cu13" }
2929
# Order: pathfinder -> bindings -> core (matching scripts/run_tests.sh)
3030
# Each sub-package has its own pixi.toml and environment
3131
# Usage: pixi run test (default) or pixi run -e cu12 test or pixi run -e cu13 test
32+
# The environment specified with -e is automatically passed down via PIXI_ENVIRONMENT_NAME
3233
[target.linux.tasks.test-pathfinder]
33-
cmd = ["bash", "-c", "ENV=\"\"; [[ \"${CONDA_DEFAULT_ENV:-}\" == *\"cu12\"* ]] && ENV=\"cu12\"; [[ \"${CONDA_DEFAULT_ENV:-}\" == *\"cu13\"* ]] && ENV=\"cu13\"; cd cuda_pathfinder && if [ -n \"$ENV\" ]; then pixi run --environment \"$ENV\" test; else pixi run test; fi"]
34+
cmd = ["bash", "-c", "cd cuda_pathfinder && if [ -n \"${PIXI_ENVIRONMENT_NAME:-}\" ]; then pixi run --environment \"$PIXI_ENVIRONMENT_NAME\" test; else pixi run test; fi"]
3435

3536
[target.linux.tasks.test-bindings]
36-
cmd = ["bash", "-c", "ENV=\"\"; [[ \"${CONDA_DEFAULT_ENV:-}\" == *\"cu12\"* ]] && ENV=\"cu12\"; [[ \"${CONDA_DEFAULT_ENV:-}\" == *\"cu13\"* ]] && ENV=\"cu13\"; cd cuda_bindings && if [ -n \"$ENV\" ]; then pixi run --environment \"$ENV\" test; else pixi run test; fi"]
37+
cmd = ["bash", "-c", "cd cuda_bindings && if [ -n \"${PIXI_ENVIRONMENT_NAME:-}\" ]; then pixi run --environment \"$PIXI_ENVIRONMENT_NAME\" test; else pixi run test; fi"]
3738

3839
[target.linux.tasks.test-core]
39-
cmd = ["bash", "-c", "ENV=\"\"; [[ \"${CONDA_DEFAULT_ENV:-}\" == *\"cu12\"* ]] && ENV=\"cu12\"; [[ \"${CONDA_DEFAULT_ENV:-}\" == *\"cu13\"* ]] && ENV=\"cu13\"; cd cuda_core && if [ -n \"$ENV\" ]; then pixi run --environment \"$ENV\" test; else pixi run test; fi"]
40+
cmd = ["bash", "-c", "cd cuda_core && if [ -n \"${PIXI_ENVIRONMENT_NAME:-}\" ]; then pixi run --environment \"$PIXI_ENVIRONMENT_NAME\" test; else pixi run test; fi"]
4041

4142
[target.linux.tasks.test]
4243
cmd = [
4344
"bash", "-c",
44-
"set -e; ENV=\"\"; [[ \"${CONDA_DEFAULT_ENV:-}\" == *\"cu12\"* ]] && ENV=\"cu12\"; [[ \"${CONDA_DEFAULT_ENV:-}\" == *\"cu13\"* ]] && ENV=\"cu13\"; cd cuda_pathfinder && (if [ -n \"$ENV\" ]; then pixi run --environment \"$ENV\" test; else pixi run test; fi) && cd ../cuda_bindings && (if [ -n \"$ENV\" ]; then pixi run --environment \"$ENV\" test; else pixi run test; fi) && cd ../cuda_core && (if [ -n \"$ENV\" ]; then pixi run --environment \"$ENV\" test; else pixi run test; fi)"
45+
"set -e; cd cuda_pathfinder && (if [ -n \"${PIXI_ENVIRONMENT_NAME:-}\" ]; then pixi run --environment \"$PIXI_ENVIRONMENT_NAME\" test; else pixi run test; fi) && cd ../cuda_bindings && (if [ -n \"${PIXI_ENVIRONMENT_NAME:-}\" ]; then pixi run --environment \"$PIXI_ENVIRONMENT_NAME\" test; else pixi run test; fi) && cd ../cuda_core && (if [ -n \"${PIXI_ENVIRONMENT_NAME:-}\" ]; then pixi run --environment \"$PIXI_ENVIRONMENT_NAME\" test; else pixi run test; fi)"
4546
]

0 commit comments

Comments
 (0)