Skip to content

Commit 51b9c6c

Browse files
rparolincpcloud
andauthored
[pixi] Add pixi support for running all sub-package tests (#1398)
* Adding a global metapackage level pixi.tom to run all the pytest suites with the same virtual environment * Removing tasks * precommit * removing the conda environment detection support * Using depends-on instead of coping the command line * simplifying the task command line using bash parameter expansion * improve doc comments * refactor: no bash, and configurable arguments * chore: consistency with -e/--environment flags * refactor: remove features * refactor: bring back envs for -e behavior * refactor: use envars to set child environment * refactor: add pixi dust * refactor: more pixi dust * refactor: remove envars --------- Co-authored-by: Phillip Cloud <417981+cpcloud@users.noreply.github.com>
1 parent 9b73e78 commit 51b9c6c

File tree

3 files changed

+77
-6
lines changed

3 files changed

+77
-6
lines changed

cuda_core/pixi.lock

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pixi.lock

Lines changed: 21 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pixi.toml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
2+
#
3+
# SPDX-License-Identifier: Apache-2.0
4+
5+
[workspace]
6+
channels = ["conda-forge"]
7+
platforms = ["linux-64", "linux-aarch64", "win-64"]
8+
9+
[feature.cu12.dependencies]
10+
[feature.cu13.dependencies]
11+
12+
[environments]
13+
cu12 = { features = ["cu12"] }
14+
cu13 = { features = ["cu13"] }
15+
16+
[activation.env]
17+
PIXI_ENVIRONMENT_NAME = "${PIXI_ENVIRONMENT_NAME/default/cu13}"
18+
19+
# Test Tasks
20+
# Runs tests across all sub-packages: pathfinder → bindings → core (dependency order)
21+
# Each sub-package has its own pixi.toml; the -e environment propagates via PIXI_ENVIRONMENT_NAME
22+
#
23+
# Usage: pixi run test | pixi run -e cu12 test | pixi run -e cu13 test
24+
[target.linux.tasks.test-pathfinder]
25+
cmd = [
26+
"pixi",
27+
"run",
28+
"--manifest-path",
29+
"$PIXI_PROJECT_ROOT/cuda_pathfinder",
30+
"test",
31+
]
32+
33+
[target.linux.tasks.test-bindings]
34+
cmd = [
35+
"pixi",
36+
"run",
37+
"--manifest-path",
38+
"$PIXI_PROJECT_ROOT/cuda_bindings",
39+
"test",
40+
]
41+
42+
[target.linux.tasks.test-core]
43+
cmd = ["pixi", "run", "--manifest-path", "$PIXI_PROJECT_ROOT/cuda_core", "test"]
44+
45+
[target.linux.tasks.test]
46+
depends-on = [
47+
{ task = "test-pathfinder" },
48+
{ task = "test-bindings" },
49+
{ task = "test-core" },
50+
]

0 commit comments

Comments
 (0)