diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b5628751245..ee880bc948b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -242,7 +242,8 @@ jobs: # The following command checks that all modules can be imported. # The output also includes a long list of modules together with the number of tests in each module. # This can be ignored. - ./sage -python -m pip install uv + ./sage -python -m pip install uv + export UV_PROJECT_ENVIRONMENT= $(./sage -c "import os; print(os.environ.get('VIRTUAL_ENV', ''))") ./sage -python -m uv run --frozen --only-group test -- pytest -c tox.ini -qq --doctest --collect-only || true shell: sh .ci/docker-exec-script.sh BUILD /sage {0} @@ -454,6 +455,7 @@ jobs: ln -s $(pwd)/.coverage /sage/ cd /sage ./sage -python -m pip install uv + export UV_PROJECT_ENVIRONMENT= $(./sage -c "import os; print(os.environ.get('VIRTUAL_ENV', ''))") ./sage -python -m uv run --frozen --only-group test -- coverage run --rcfile=src/tox.ini src/bin/sage-runtests --force-lib --long -p4 --format github --random-seed=286735480429121101562228604801325644303 ${{ matrix.tests }} shell: sh .ci/docker-exec-script.sh BUILD . {0} @@ -581,6 +583,7 @@ jobs: ln -s $(pwd)/.coverage /sage/ cd /sage ./sage -python -m pip install uv + export UV_PROJECT_ENVIRONMENT= $(./sage -c "import os; print(os.environ.get('VIRTUAL_ENV', ''))") ./sage -python -m uv run --frozen --only-group test -- coverage combine --rcfile=src/tox.ini .coverage/coverage-*/.coverage ./sage -python -m uv run --frozen --only-group test -- coverage xml --rcfile=src/tox.ini --omit="/tmp/*" mkdir -p .coverage/coverage-report