Skip to content

Commit

Permalink
Set uv's venv to sage's
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiasdiez committed Dec 1, 2024
1 parent 8545dcf commit e9408a6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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}

Expand Down Expand Up @@ -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}

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit e9408a6

Please sign in to comment.