From d7da6965b550459ee9adac036bf8611c0452dc0a Mon Sep 17 00:00:00 2001 From: Ruben Arts Date: Tue, 30 Apr 2024 21:23:13 +0200 Subject: [PATCH 1/4] fix: alias depends_on to depends-on --- docs/examples/cpp-sdl.md | 2 +- docs/features/advanced_tasks.md | 8 ++++---- docs/reference/cli.md | 8 ++++---- docs/reference/configuration.md | 4 ++-- docs/tutorials/ros2.md | 4 ++-- docs/tutorials/rust.md | 2 +- examples/cpp-sdl/pixi.toml | 4 ++-- examples/ctypes-factorial/README.md | 2 +- examples/ctypes-factorial/pixi.toml | 2 +- examples/multi-machine/pixi.toml | 2 +- examples/qgis/pixi.toml | 2 +- pixi.toml | 2 +- schema/examples/valid/full.toml | 18 ++++++++--------- schema/model.py | 1 + schema/schema.json | 4 ++-- src/cli/task.rs | 4 ++-- src/project/manifest/pyproject.rs | 12 ++++++------ src/task/mod.rs | 7 ++++--- src/task/task_graph.rs | 30 ++++++++++++++--------------- 19 files changed, 60 insertions(+), 58 deletions(-) diff --git a/docs/examples/cpp-sdl.md b/docs/examples/cpp-sdl.md index 149bb58df..10bcfbcfb 100644 --- a/docs/examples/cpp-sdl.md +++ b/docs/examples/cpp-sdl.md @@ -23,7 +23,7 @@ Run the `start` command pixi run start ``` -Using the [`depends_on`](../features/advanced_tasks.md#depends-on) feature you only needed to run the `start` task but under water it is running the following tasks. +Using the [`depends-on`](../features/advanced_tasks.md#depends-on) feature you only needed to run the `start` task but under water it is running the following tasks. ```shell # Configure the CMake project diff --git a/docs/features/advanced_tasks.md b/docs/features/advanced_tasks.md index 5108cf741..65815f535 100644 --- a/docs/features/advanced_tasks.md +++ b/docs/features/advanced_tasks.md @@ -27,7 +27,7 @@ configure = { cmd = [ ] } # Depend on other tasks -build = { cmd = ["ninja", "-C", ".build"], depends_on = ["configure"] } +build = { cmd = ["ninja", "-C", ".build"], depends-on = ["configure"] } # Using environment variables run = "python main.py $PIXI_PROJECT_ROOT" @@ -62,9 +62,9 @@ Results in the following lines added to the `pixi.toml` # Configures CMake configure = "cmake -G Ninja -S . -B .build" # Build the executable but make sure CMake is configured first. -build = { cmd = "ninja -C .build", depends_on = ["configure"] } +build = { cmd = "ninja -C .build", depends-on = ["configure"] } # Start the built executable -start = { cmd = ".build/bin/sdl_example", depends_on = ["build"] } +start = { cmd = ".build/bin/sdl_example", depends-on = ["build"] } ``` ```shell @@ -95,7 +95,7 @@ Results in the following `pixi.toml`. ```toml title="pixi.toml" fmt = "ruff" lint = "pylint" -style = { depends_on = ["fmt", "lint"] } +style = { depends-on = ["fmt", "lint"] } ``` Now run both tools with one command. diff --git a/docs/reference/cli.md b/docs/reference/cli.md index c234f797b..9c95c3bba 100644 --- a/docs/reference/cli.md +++ b/docs/reference/cli.md @@ -155,12 +155,12 @@ pixi run --environment cuda python This is done so that the run commands can be run across all platforms. !!! tip "Cross environment tasks" - If you're using the `depends_on` feature of the `tasks`, the tasks will be run in the order you specified them. - The `depends_on` can be used cross environment, e.g. you have this `pixi.toml`: + If you're using the `depends-on` feature of the `tasks`, the tasks will be run in the order you specified them. + The `depends-on` can be used cross environment, e.g. you have this `pixi.toml`: ??? "pixi.toml" ```toml [tasks] - start = { cmd = "python start.py", depends_on = ["build"] } + start = { cmd = "python start.py", depends-on = ["build"] } [feature.build.tasks] build = "cargo build" @@ -248,7 +248,7 @@ This adds the following to the [manifest file](configuration.md): [tasks] cow = "cowpy \"Hello User\"" tls = { cmd = "ls", cwd = "tests" } -test = { cmd = "cargo t", depends_on = ["build"] } +test = { cmd = "cargo t", depends-on = ["build"] } [target.osx-64.tasks] build-osx = "METAL=1 cargo build" diff --git a/docs/reference/configuration.md b/docs/reference/configuration.md index 69d201109..7ede16a9e 100644 --- a/docs/reference/configuration.md +++ b/docs/reference/configuration.md @@ -171,8 +171,8 @@ Pixi's tasks are run in a pixi environment using `pixi run` and are executed usi [tasks] simple = "echo This is a simple task" cmd = { cmd="echo Same as a simple task but now more verbose"} -depending = { cmd="echo run after simple", depends_on="simple"} -alias = { depends_on=["depending"]} +depending = { cmd="echo run after simple", depends-on="simple"} +alias = { depends-on=["depending"]} download = { cmd="curl -o file.txt https://example.com/file.txt" , outputs=["file.txt"]} build = { cmd="npm build", cwd="frontend", inputs=["frontend/package.json", "frontend/*.js"]} run = { cmd="python run.py $ARGUMENT", env={ ARGUMENT="value" }} diff --git a/docs/tutorials/ros2.md b/docs/tutorials/ros2.md index eaff371de..0932ddc1b 100644 --- a/docs/tutorials/ros2.md +++ b/docs/tutorials/ros2.md @@ -168,7 +168,7 @@ pixi run hello ???+ tip "Advanced task usage" Tasks are a powerful feature in pixi. - - You can add [`depends_on`](../features/advanced_tasks.md#depends-on) to the tasks to create a task chain. + - You can add [`depends-on`](../features/advanced_tasks.md#depends-on) to the tasks to create a task chain. - You can add [`cwd`](../features/advanced_tasks.md#working-directory) to the tasks to run the task in a different directory from the root of the project. - You can add [`inputs` and `outputs`](../features/advanced_tasks.md#caching) to the tasks to create a task that only runs when the inputs are changed. - You can use the [`target`](../reference/configuration.md#the-target-table) syntax to run specific tasks on specific machines. @@ -177,7 +177,7 @@ pixi run hello [tasks] sim = "ros2 run turtlesim turtlesim_node" build = {cmd = "colcon build --symlink-install", inputs = ["src"]} -hello = { cmd = "ros2 run my_package my_node", depends_on = ["build"] } +hello = { cmd = "ros2 run my_package my_node", depends-on = ["build"] } ``` ## Build a C++ node diff --git a/docs/tutorials/rust.md b/docs/tutorials/rust.md index d4b998f00..aa8901f22 100644 --- a/docs/tutorials/rust.md +++ b/docs/tutorials/rust.md @@ -177,7 +177,7 @@ You can add a formatting task to your project: pixi task add fmt "cargo fmt" ``` -You can extend these tasks to run multiple commands with the use of the `depends_on` field. +You can extend these tasks to run multiple commands with the use of the `depends-on` field. ```shell pixi task add lint "cargo clippy" --depends-on fmt ``` diff --git a/examples/cpp-sdl/pixi.toml b/examples/cpp-sdl/pixi.toml index 84c9df2c3..642089f86 100644 --- a/examples/cpp-sdl/pixi.toml +++ b/examples/cpp-sdl/pixi.toml @@ -9,7 +9,7 @@ platforms = ["win-64", "linux-64", "osx-64", "osx-arm64"] [tasks.start] # Start the built executable cmd = ".build/bin/sdl_example" -depends_on = ["build"] +depends-on = ["build"] [dependencies] sdl2 = "2.26.5.*" @@ -36,7 +36,7 @@ outputs = [".build/CMakeFiles/"] # Build the executable but make sure CMake is configured first. [feature.build.tasks.build] cmd = ["cmake", "--build", ".build"] -depends_on = ["configure"] +depends-on = ["configure"] inputs = ["CMakeLists.txt", "src/*"] outputs = [".build/bin/sdl_example"] diff --git a/examples/ctypes-factorial/README.md b/examples/ctypes-factorial/README.md index 0f4a2ec17..79e4470f2 100644 --- a/examples/ctypes-factorial/README.md +++ b/examples/ctypes-factorial/README.md @@ -6,7 +6,7 @@ This examples calculates approximate factorials of large numbers using pure Pyth ## Features demonstrated: - packaging C and Python libraries together - compiling with gcc through Pixi tasks -- conditional Pixi task execution (`depends_on`) +- conditional Pixi task execution (`depends-on`) - defining tasks with arguments diff --git a/examples/ctypes-factorial/pixi.toml b/examples/ctypes-factorial/pixi.toml index b5d6b884f..93fe28f74 100644 --- a/examples/ctypes-factorial/pixi.toml +++ b/examples/ctypes-factorial/pixi.toml @@ -35,7 +35,7 @@ start = { cmd = [ "12345678", "-e", "python", -], depends_on = "compile" } +], depends-on = "compile" } [target.osx-64.tasks] compile = { cmd = "clang -shared -o src/factorial.so src/factorial.c" } diff --git a/examples/multi-machine/pixi.toml b/examples/multi-machine/pixi.toml index 9cee88897..3a83e88f5 100644 --- a/examples/multi-machine/pixi.toml +++ b/examples/multi-machine/pixi.toml @@ -8,7 +8,7 @@ platforms = ["win-64", "linux-64", "osx-64", "osx-arm64"] [tasks] train = "python train.py" test = "python test.py" -start = { depends_on = ["train", "test"] } +start = { depends-on = ["train", "test"] } [dependencies] python = "3.11.*" diff --git a/examples/qgis/pixi.toml b/examples/qgis/pixi.toml index 5696629b2..f095781fb 100644 --- a/examples/qgis/pixi.toml +++ b/examples/qgis/pixi.toml @@ -8,7 +8,7 @@ platforms = ["linux-64", "win-64", "osx-64", "osx-arm64"] [tasks] get-data = "python get_data.py" -start = { cmd = "qgis earthquakes_example.qgz", depends_on = "get-data" } +start = { cmd = "qgis earthquakes_example.qgz", depends-on = "get-data" } [dependencies] qgis = "3.32.1.*" diff --git a/pixi.toml b/pixi.toml index 67fd46562..86fdf226e 100644 --- a/pixi.toml +++ b/pixi.toml @@ -53,7 +53,7 @@ deploy-dev = "mike deploy --push dev devel" [feature.schema.tasks] generate-schema = { cmd = "python model.py > schema.json", cwd = "schema" } -test-schema = { cmd = "pytest -s", depends_on = "generate-schema", cwd = "schema" } +test-schema = { cmd = "pytest -s", depends-on = "generate-schema", cwd = "schema" } toml-lint = "taplo lint --verbose **/pixi.toml" toml-format = "taplo fmt **/pixi.toml" diff --git a/schema/examples/valid/full.toml b/schema/examples/valid/full.toml index fd661135c..e58854bbb 100644 --- a/schema/examples/valid/full.toml +++ b/schema/examples/valid/full.toml @@ -41,13 +41,13 @@ package1 = { version = ">=1.2.3", build="py34_0" } [tasks] build = "conda build ." -test = { cmd = "pytest", cwd = "tests", depends_on = ["build"] } +test = { cmd = "pytest", cwd = "tests", depends-on = ["build"] } test2 = { cmd = "pytest", cwd = "tests"} -test3 = { cmd = "pytest", depends_on = ["test2"] } -test4 = { cmd = "pytest", cwd = "tests", depends_on = ["test2"] } +test3 = { cmd = "pytest", depends-on = ["test2"] } +test4 = { cmd = "pytest", cwd = "tests", depends-on = ["test2"] } test5 = { cmd = "pytest" } -test6 = { depends_on = ["test5"] } -test7 = { cmd = "pytest", cwd = "tests", depends_on = ["test5"], env = {PYTHONPATH = "bla", "WEIRD_STRING" = "blu"}} +test6 = { depends-on = ["test5"] } +test7 = { cmd = "pytest", cwd = "tests", depends-on = ["test5"], env = {PYTHONPATH = "bla", "WEIRD_STRING" = "blu"}} [system-requirements] linux = "5.10" @@ -102,12 +102,12 @@ package1 = { version = ">=1.2.3", build="py34_0" } [target.linux-64.tasks] build = "conda build ." -test = { cmd = "pytest", cwd = "tests", depends_on = ["build"] } +test = { cmd = "pytest", cwd = "tests", depends-on = ["build"] } test2 = { cmd = "pytest", cwd = "tests"} -test3 = { cmd = "pytest", depends_on = ["test2"] } -test4 = { cmd = "pytest", cwd = "tests", depends_on = ["test2"] } +test3 = { cmd = "pytest", depends-on = ["test2"] } +test4 = { cmd = "pytest", cwd = "tests", depends-on = ["test2"] } test5 = { cmd = "pytest" } -test6 = { depends_on = ["test5"] } +test6 = { depends-on = ["test5"] } [feature.test.target.linux-64.dependencies] test = "*" diff --git a/schema/model.py b/schema/model.py index 5ef06d08a..4a3a48ed4 100644 --- a/schema/model.py +++ b/schema/model.py @@ -237,6 +237,7 @@ class TaskInlineTable(StrictBaseModel): cwd: PathNoBackslash | None = Field(None, description="The working directory to run the task") depends_on: list[TaskName] | TaskName | None = Field( None, + alias = "depends-on", description="The tasks that this task depends on. Environment variables will **not** be expanded.", ) inputs: list[Glob] | None = Field( diff --git a/schema/schema.json b/schema/schema.json index bf044ab62..0b06c523e 100644 --- a/schema/schema.json +++ b/schema/schema.json @@ -1042,8 +1042,8 @@ "type": "string", "pattern": "^[^\\\\]+$" }, - "depends_on": { - "title": "Depends On", + "depends-on": { + "title": "Depends-On", "description": "The tasks that this task depends on. Environment variables will **not** be expanded.", "anyOf": [ { diff --git a/src/cli/task.rs b/src/cli/task.rs index 7c8ca495a..8cb5cbd92 100644 --- a/src/cli/task.rs +++ b/src/cli/task.rs @@ -318,7 +318,7 @@ impl From for Item { } if !process.depends_on.is_empty() { table.insert( - "depends_on", + "depends-on", Value::Array(Array::from_iter( process .depends_on @@ -339,7 +339,7 @@ impl From for Item { Task::Alias(alias) => { let mut table = Table::new().into_inline_table(); table.insert( - "depends_on", + "depends-on", Value::Array(Array::from_iter( alias .depends_on diff --git a/src/project/manifest/pyproject.rs b/src/project/manifest/pyproject.rs index c94919162..9d63fcb87 100644 --- a/src/project/manifest/pyproject.rs +++ b/src/project/manifest/pyproject.rs @@ -280,11 +280,11 @@ mod tests { [tool.pixi.tasks] build = "conda build ." - test = { cmd = "pytest", cwd = "tests", depends_on = ["build"] } + test = { cmd = "pytest", cwd = "tests", depends-on = ["build"] } test2 = { cmd = "pytest", cwd = "tests"} - test3 = { cmd = "pytest", depends_on = ["test2"] } + test3 = { cmd = "pytest", depends-on = ["test2"] } test5 = { cmd = "pytest" } - test6 = { depends_on = ["test5"] } + test6 = { depends-on = ["test5"] } [tool.pixi.system-requirements] linux = "5.10" @@ -333,11 +333,11 @@ mod tests { [tool.pixi.target.linux-64.tasks] build = "conda build ." - test = { cmd = "pytest", cwd = "tests", depends_on = ["build"] } + test = { cmd = "pytest", cwd = "tests", depends-on = ["build"] } test2 = { cmd = "pytest", cwd = "tests"} - test3 = { cmd = "pytest", depends_on = ["test2"] } + test3 = { cmd = "pytest", depends-on = ["test2"] } test5 = { cmd = "pytest" } - test6 = { depends_on = ["test5"] } + test6 = { depends-on = ["test5"] } [tool.pixi.feature.test.target.linux-64.dependencies] test = "bla" diff --git a/src/task/mod.rs b/src/task/mod.rs index d2fdff999..dd0c379ce 100644 --- a/src/task/mod.rs +++ b/src/task/mod.rs @@ -172,7 +172,7 @@ pub struct Execute { pub outputs: Option>, /// A list of commands that should be run before this one - #[serde(default)] + #[serde(default, alias = "depends-on")] #[serde_as(deserialize_as = "OneOrMany<_, PreferMany>")] pub depends_on: Vec, @@ -247,6 +247,7 @@ impl CmdArgs { #[serde_as] pub struct Alias { /// A list of commands that should be run before this one + #[serde(alias = "depends-on")] #[serde_as(deserialize_as = "OneOrMany<_, PreferMany>")] pub depends_on: Vec, } @@ -269,13 +270,13 @@ impl Display for Task { if depends_on.len() == 1 { write!( f, - ", depends_on = '{}'", + ", depends-on = '{}'", depends_on.iter().map(|t| t.fancy_display()).join(",") )?; } else { write!( f, - ", depends_on = [{}]", + ", depends-on = [{}]", depends_on.iter().map(|t| t.fancy_display()).join(",") )?; } diff --git a/src/task/task_graph.rs b/src/task/task_graph.rs index d1dc82b8c..38b9fa53b 100644 --- a/src/task/task_graph.rs +++ b/src/task/task_graph.rs @@ -47,7 +47,7 @@ impl fmt::Display for TaskNode<'_> { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { write!( f, - "task: {}, environment: {}, command: `{}`, additional arguments: `{}`, depends_on: `{}`", + "task: {}, environment: {}, command: `{}`, additional arguments: `{}`, depends-on: `{}`", self.name.clone().unwrap_or("CUSTOM COMMAND".into()).0, self.run_environment.name(), self.task.as_single_command().unwrap_or(Cow::Owned("".to_string())), @@ -340,9 +340,9 @@ mod test { platforms = ["linux-64", "osx-64", "win-64", "osx-arm64"] [tasks] root = "echo root" - task1 = {cmd="echo task1", depends_on=["root"]} - task2 = {cmd="echo task2", depends_on=["root"]} - top = {cmd="echo top", depends_on=["task1","task2"]} + task1 = {cmd="echo task1", depends-on=["root"]} + task2 = {cmd="echo task2", depends-on=["root"]} + top = {cmd="echo top", depends-on=["task1","task2"]} "#, &["top", "--test"], None, @@ -362,10 +362,10 @@ mod test { channels = ["conda-forge"] platforms = ["linux-64", "osx-64", "win-64", "osx-arm64"] [tasks] - root = {cmd="echo root", depends_on=["task1"]} - task1 = {cmd="echo task1", depends_on=["root"]} - task2 = {cmd="echo task2", depends_on=["root"]} - top = {cmd="echo top", depends_on=["task1","task2"]} + root = {cmd="echo root", depends-on=["task1"]} + task1 = {cmd="echo task1", depends-on=["root"]} + task2 = {cmd="echo task2", depends-on=["root"]} + top = {cmd="echo top", depends-on=["task1","task2"]} "#, &["top"], None, @@ -386,11 +386,11 @@ mod test { platforms = ["linux-64", "osx-64", "win-64", "osx-arm64"] [tasks] root = "echo root" - task1 = {cmd="echo task1", depends_on=["root"]} - task2 = {cmd="echo task2", depends_on=["root"]} - top = {cmd="echo top", depends_on=["task1","task2"]} + task1 = {cmd="echo task1", depends-on=["root"]} + task2 = {cmd="echo task2", depends-on=["root"]} + top = {cmd="echo top", depends-on=["task1","task2"]} [target.linux-64.tasks] - root = {cmd="echo linux", depends_on=["task1"]} + root = {cmd="echo linux", depends-on=["task1"]} "#, &["top"], Some(Platform::Linux64), @@ -482,7 +482,7 @@ mod test { [tasks] train = "python train.py" test = "python test.py" - start = {depends_on = ["train", "test"]} + start = {depends-on = ["train", "test"]} [feature.cuda.tasks] train = "python train.py --cuda" @@ -513,7 +513,7 @@ mod test { [tasks] foo = "echo foo" - foobar = { cmd = "echo bar", depends_on = ["foo"] } + foobar = { cmd = "echo bar", depends-on = ["foo"] } [feature.build.tasks] build = "echo build" @@ -542,7 +542,7 @@ mod test { [tasks] foo = "echo foo" - foobar = { cmd = "echo bar", depends_on = ["foo"] } + foobar = { cmd = "echo bar", depends-on = ["foo"] } [feature.build.tasks] build = "echo build" From a7997eddc321fbf5b8020beebc40c1f4b22e35c3 Mon Sep 17 00:00:00 2001 From: Ruben Arts Date: Tue, 30 Apr 2024 21:25:43 +0200 Subject: [PATCH 2/4] chore: add break comment --- src/task/mod.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/task/mod.rs b/src/task/mod.rs index dd0c379ce..2d42f2d2f 100644 --- a/src/task/mod.rs +++ b/src/task/mod.rs @@ -172,6 +172,7 @@ pub struct Execute { pub outputs: Option>, /// A list of commands that should be run before this one + // BREAK: Make the alias a renamed field to force kebab-case #[serde(default, alias = "depends-on")] #[serde_as(deserialize_as = "OneOrMany<_, PreferMany>")] pub depends_on: Vec, From 952cbf3f2d1e81c0a8a23aca4c19ba989a85b49f Mon Sep 17 00:00:00 2001 From: Ruben Arts Date: Tue, 30 Apr 2024 21:35:14 +0200 Subject: [PATCH 3/4] fix: add depends_on back to the schema to avoid creating issues for early adopters --- schema/examples/valid/full.toml | 3 ++- schema/model.py | 8 +++++++- schema/schema.json | 19 +++++++++++++++++++ 3 files changed, 28 insertions(+), 2 deletions(-) diff --git a/schema/examples/valid/full.toml b/schema/examples/valid/full.toml index e58854bbb..15dda09fc 100644 --- a/schema/examples/valid/full.toml +++ b/schema/examples/valid/full.toml @@ -41,7 +41,8 @@ package1 = { version = ">=1.2.3", build="py34_0" } [tasks] build = "conda build ." -test = { cmd = "pytest", cwd = "tests", depends-on = ["build"] } +# deprecated depends_on +test = { cmd = "pytest", cwd = "tests", depends_on = ["build"] } test2 = { cmd = "pytest", cwd = "tests"} test3 = { cmd = "pytest", depends-on = ["test2"] } test4 = { cmd = "pytest", cwd = "tests", depends-on = ["test2"] } diff --git a/schema/model.py b/schema/model.py index 4a3a48ed4..a4243df50 100644 --- a/schema/model.py +++ b/schema/model.py @@ -235,9 +235,15 @@ class TaskInlineTable(StrictBaseModel): description="A shell command to run the task in the limited, but cross-platform `bash`-like `deno_task_shell`. See the documentation for [supported syntax](https://pixi.sh/latest/features/advanced_tasks/#syntax)", ) cwd: PathNoBackslash | None = Field(None, description="The working directory to run the task") + # BREAK: `depends_on` is deprecated, use `depends-on` + depends_on_deprecated: list[TaskName] | TaskName | None = Field( + None, + alias = "depends_on", + description="The tasks that this task depends on. Environment variables will **not** be expanded. Deprecated in favor of `depends-on` from v0.21.0 onward.", + ) depends_on: list[TaskName] | TaskName | None = Field( None, - alias = "depends-on", + alias="depends-on", description="The tasks that this task depends on. Environment variables will **not** be expanded.", ) inputs: list[Glob] | None = Field( diff --git a/schema/schema.json b/schema/schema.json index 0b06c523e..a6181d2e1 100644 --- a/schema/schema.json +++ b/schema/schema.json @@ -1061,6 +1061,25 @@ } ] }, + "depends_on": { + "title": "Depends On", + "description": "The tasks that this task depends on. Environment variables will **not** be expanded. Deprecated in favor of `depends-on` from v0.21.0 onward.", + "anyOf": [ + { + "type": "array", + "items": { + "description": "A valid task name.", + "type": "string", + "pattern": "^[^\\s\\$]+$" + } + }, + { + "description": "A valid task name.", + "type": "string", + "pattern": "^[^\\s\\$]+$" + } + ] + }, "env": { "title": "Env", "description": "A map of environment variables to values, used in the task, these will be overwritten by the shell.", From e105d5c392b12aed9b078bed5791e0a7c173f65d Mon Sep 17 00:00:00 2001 From: Ruben Arts Date: Tue, 30 Apr 2024 21:39:14 +0200 Subject: [PATCH 4/4] fix: ci with non released feature in pixi.toml --- pixi.toml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pixi.toml b/pixi.toml index 86fdf226e..6d292c0a3 100644 --- a/pixi.toml +++ b/pixi.toml @@ -53,7 +53,8 @@ deploy-dev = "mike deploy --push dev devel" [feature.schema.tasks] generate-schema = { cmd = "python model.py > schema.json", cwd = "schema" } -test-schema = { cmd = "pytest -s", depends-on = "generate-schema", cwd = "schema" } +# Using deprecated `depends_on` to avoid conflicts in ci. Changes after release. +test-schema = { cmd = "pytest -s", depends_on = "generate-schema", cwd = "schema" } toml-lint = "taplo lint --verbose **/pixi.toml" toml-format = "taplo fmt **/pixi.toml"