Use a common venv for tests

This commit is contained in:
Adrian Vollmer 2024-04-28 15:19:15 +02:00
parent 44bfdade54
commit 0e12a34121

View File

@ -66,11 +66,11 @@ def run_make_commands(request):
# Get the directory of the current test file # Get the directory of the current test file
test_dir = request.fspath.dirname test_dir = request.fspath.dirname
cmd = """ cmd = """
uv venv && \\ ( cd .. ; uv venv ) && \\
. .venv/bin/activate && \\ . ../.venv/bin/activate && \\
uv pip install -r requirements.txt && \\ uv pip install -r requirements.txt && \\
rm -rf _build && \\ rm -rf _build && \\
.venv/bin/sphinx-build -M zundler . _build ../.venv/bin/sphinx-build -M zundler . _build
""" """
for d in ["copy-button", "mermaid", "multi-page", "dark-mode"]: for d in ["copy-button", "mermaid", "multi-page", "dark-mode"]: