From a2d7fb7596e966fcc20a2eb9cfe38fb3a3c005e5 Mon Sep 17 00:00:00 2001 From: Owen Leung Date: Fri, 22 Mar 2024 12:56:50 +0800 Subject: [PATCH] use virtual env for pytest (#2004) use virtual env for pytest --- src/ci.rs | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/ci.rs b/src/ci.rs index f4071c51f..6ac071fac 100644 --- a/src/ci.rs +++ b/src/ci.rs @@ -383,6 +383,8 @@ jobs:\n", shell: bash run: | set -e + python3 -m venv venv + source ./venv/bin/activate pip install {project_name} --find-links dist --force-reinstall pip install pytest {chdir}pytest @@ -415,6 +417,8 @@ jobs:\n", shell: bash run: | set -e + python3 -m venv venv + source ./venv/bin/activate pip install {project_name} --find-links dist --force-reinstall pip install pytest {chdir}pytest @@ -426,6 +430,8 @@ jobs:\n", " - name: pytest run: | set -e + python3 -m venv venv + source ./venv/bin/activate pip install {project_name} --find-links dist --force-reinstall pip install pytest {chdir}pytest @@ -909,6 +915,8 @@ mod tests { shell: bash run: | set -e + python3 -m venv venv + source ./venv/bin/activate pip install example --find-links dist --force-reinstall pip install pytest pytest @@ -959,6 +967,8 @@ mod tests { shell: bash run: | set -e + python3 -m venv venv + source ./venv/bin/activate pip install example --find-links dist --force-reinstall pip install pytest pytest @@ -991,6 +1001,8 @@ mod tests { - name: pytest run: | set -e + python3 -m venv venv + source ./venv/bin/activate pip install example --find-links dist --force-reinstall pip install pytest pytest