Created
February 20, 2025 15:39
-
-
Save ruben-arts/f488b9c7bcae3ec5a802388889fbdb2b to your computer and use it in GitHub Desktop.
Pixi manifest used in Tasks 101 video
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[project] | |
channels = ["https://prefix.dev/conda-forge"] | |
name = "tasks-example" | |
platforms = ["osx-arm64", "win-64", "linux-64"] | |
[dependencies] | |
pytest = ">=8.3.4,<9" | |
[tasks] | |
# Simple tasks | |
hello = "echo hello" | |
test = "pytest --version" | |
# Trailing commands | |
ec = "echo" | |
# Depending on other tasks | |
publish = { cmd = "echo publishing", depends-on = ["test"]} | |
depends = { cmd = "echo depends on multiple", depends-on = ["hello", "publish"]} | |
# Creating an alias | |
pub = {depends-on = ["publish"]} | |
# Task cache using Inputs and outputs | |
download = { cmd = "echo xxx > download.txt", outputs = ["download.txt"]} | |
build = { cmd = "echo rebuilding", inputs = ["pixi.toml"]} | |
# Task in multiple environments | |
[feature.a.tasks] | |
task-a = "echo This is task-a" | |
task-c = "echo This is task-c from env a" | |
[feature.b.tasks] | |
task-b = { cmd = "echo This is task-b", depends-on = ["task-a"] } | |
task-c = "echo This is task-c from env b" | |
[environments] | |
a = { features= ["a"], no-default-feature = true } | |
b = { features= ["b"], no-default-feature = true } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment