Skip to content

Support --no-project as action param #854

Closed

Description

@copdips

Hello,

I have a working pyproject.toml used by other package management tool, but it is not compatible with uv.
During CICD, I want to use uv to create a .venv, and manually install some packages.

I used:

- name: Install uv
  uses: astral-sh/setup-uv@v8.0.0
  with:
    enable-cache: true
    activate-environment: true

This raises an error, saying that uv cannot parse some special syntax in pyproject.toml, which is expected.

I can reproduce the same error local with uv venv .venv.

However, I can bypass it locally with uv venv .venv --no-project, but I haven't found an equivalent param in astral-sh/setup-uv.
Did I miss it, or is it not supported ?

There's no env var for this locally either, I must use inline param --no-project. If uv supports an env var, then I can use it in both locally and in CICD

I know I can set the param activate-environment: false to use system level environement, but for my specific use case, I need an venv in CICD.

Activity

  1. eifinger commented on Apr 16, 2026

    @eifinger
    Collaborator

    Can you give me the exact special syntax or in an anonymous version of it that I can use as a unit test?

  2. copdips commented on Apr 16, 2026

    @copdips
    Author

    I'm using pdm for a project, and may migrate to uv one day, but not all at once.
    uv doesn't support the ${PROJECT_ROOT} sytnax , as shown in the PDM doc

    I don't need uv to support all PDM specific syntax, but I would like to support --no-project in Github Action.

    [dependency-groups]
    dev = [
        "-e file:///${PROJECT_ROOT}/projects/pkg",
        "-e file:///${PROJECT_ROOT}/projects/svc",
    ]
  3. added a commit that references this issue on Apr 16, 2026
    b3e97d2
  4. eifinger commented on Apr 17, 2026

    @eifinger
    Collaborator

    Since this is a very small, non-intrusive addition I added it in the new release: https://github.com/astral-sh/setup-uv/releases/tag/v8.1.0. Please give it a try.

    Maybe uv will introduce a ENV var so we can remove this input again.

  5. copdips commented on Apr 17, 2026

    @copdips
    Author

    @eifinger

    Thanks for fast release, it works perfectly:

    - name: Install uv
      uses: astral-sh/setup-uv@v8.1.0
      with:
        activate-environment: true
        no-project: true
  6. added a commit that references this issue on Jun 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions