Skip to content

Commit 39f3ef7

Browse files
committed
Fix CI tests on windows-latest
* run tests in venv * merge build & test steps
1 parent 3e4564a commit 39f3ef7

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

.github/workflows/pip_install_gmpy2.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,11 @@ jobs:
103103
mpc-devel
104104
python-setuptools
105105
python-pip
106-
- run: pip install --upgrade pip
107-
- run: pip --verbose install -e .[tests]
108-
- run: pytest test/
109-
- run: PYTHONPATH=`pwd`/gmpy2 python test_cython/runtests.py
106+
- name: Build and run tests in venv
107+
run: |
108+
python -m venv .test-venv
109+
source .test-venv/bin/activate
110+
pip install --upgrade pip
111+
pip --verbose install -e .[tests]
112+
pytest test/
113+
PYTHONPATH=`pwd`/gmpy2 python test_cython/runtests.py

0 commit comments

Comments
 (0)