From 0e12a34121c47445b8a07244ae8765ee5cc6a480 Mon Sep 17 00:00:00 2001 From: Adrian Vollmer Date: Sun, 28 Apr 2024 15:19:15 +0200 Subject: [PATCH] Use a common venv for tests --- tests/conftest.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/conftest.py b/tests/conftest.py index 4290528..49c4dab 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -66,11 +66,11 @@ def run_make_commands(request): # Get the directory of the current test file test_dir = request.fspath.dirname cmd = """ - uv venv && \\ - . .venv/bin/activate && \\ + ( cd .. ; uv venv ) && \\ + . ../.venv/bin/activate && \\ uv pip install -r requirements.txt && \\ 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"]: