@@ -430,6 +430,49 @@ jobs:
430430 PY
431431 shell : bash
432432
433+ test-activate-environment-no-project :
434+ runs-on : ${{ matrix.os }}
435+ strategy :
436+ matrix :
437+ os : [ubuntu-latest, macos-latest, windows-latest]
438+ steps :
439+ - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
440+ with :
441+ persist-credentials : false
442+ - name : Create incompatible pyproject.toml
443+ run : |
444+ cat > pyproject.toml <<'EOF'
445+ [project]
446+ name = "test-no-project"
447+ version = "0.1.0"
448+
449+ [dependency-groups]
450+ dev = [
451+ "-e file:///${PROJECT_ROOT}/projects/pkg",
452+ ]
453+ EOF
454+ shell : bash
455+ - name : Install latest version with no-project
456+ id : setup-uv
457+ uses : ./
458+ with :
459+ python-version : 3.13.1t
460+ activate-environment : true
461+ no-project : true
462+ - name : Verify output venv is set
463+ run : |
464+ if [ -z "$UV_VENV" ]; then
465+ echo "output venv is not set"
466+ exit 1
467+ fi
468+ if [ ! -d "$UV_VENV" ]; then
469+ echo "output venv not point to a directory: $UV_VENV"
470+ exit 1
471+ fi
472+ shell : bash
473+ env :
474+ UV_VENV : ${{ steps.setup-uv.outputs.venv }}
475+
433476 test-debian-unstable :
434477 runs-on : ubuntu-latest
435478 container : debian:unstable
@@ -1057,6 +1100,7 @@ jobs:
10571100 - test-python-version
10581101 - test-activate-environment
10591102 - test-activate-environment-custom-path
1103+ - test-activate-environment-no-project
10601104 - test-debian-unstable
10611105 - test-musl
10621106 - test-cache-key-os-version
0 commit comments