@@ -430,6 +430,49 @@ jobs:
430430 PY
431431 shell : bash
432432
433+ test-activate-environment-no-project :
434+ runs-on : ubuntu-latest
435+ steps :
436+ - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
437+ with :
438+ persist-credentials : false
439+ - name : Create incompatible pyproject.toml
440+ run : |
441+ cat > pyproject.toml <<'EOF'
442+ [project]
443+ name = "test-no-project"
444+ version = "0.1.0"
445+
446+ [dependency-groups]
447+ dev = [
448+ "-e file:///${PROJECT_ROOT}/projects/pkg",
449+ ]
450+ EOF
451+ shell : bash
452+ - name : Install latest version with no-project
453+ id : setup-uv
454+ uses : ./
455+ with :
456+ python-version : 3.13.1t
457+ activate-environment : true
458+ no-project : true
459+ - name : Verify packages can be installed
460+ run : uv pip install pip
461+ shell : bash
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