setup-pixi icon indicating copy to clipboard operation
setup-pixi copied to clipboard

Add argument to set working-directory

Open mickvangelderen opened this issue 10 months ago • 2 comments

I think I would like to be able to set the working-directory. I know that I can specify the manifest path, but setting the working-directory retains the automatic manifest path selection behavior and is more similar to how we invoke things locally.

What I really want is to be able to set:

defaults:
  run:
    working-directory: some-subdir

in my github actions for a monorepo with a self contained pixi project in some-subdir and have "everything just work". I'm not sure a github action can see this value as it seems to only apply to run steps.

I am not sure how this would interact with automatic environment activation.

mickvangelderen avatar Jan 31 '25 10:01 mickvangelderen

Setting manifest-path: xxxx/pixi.toml seems to work.

chrisburr avatar May 20 '25 10:05 chrisburr

I think this would be great, because this way we could keep automatic manifest selection. I want to have support in one action for different projects and some of them are using pyproject.toml some of them are using pixi.toml. I wouldn't want to hardcode this into my action 🙂

retrry avatar Jul 08 '25 06:07 retrry