Skip to content

Commit

Permalink
Force python3.11 for pytest installation
Browse files Browse the repository at this point in the history
  • Loading branch information
lgeretti committed Nov 2, 2023
1 parent 18fd0ad commit b8440e1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/debug.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ jobs:
export PATH=$PATH:/Library/Frameworks/Python.framework/Versions/3.11/bin
export PYTHONPATH=$PYTHONPATH:/Library/Frameworks/Python.framework/Versions/3.11/bin
brew install ninja gcc@12 mpfr cairo gnuplot pkg-config
python3 --version
python3 -m pip install --upgrade pip
python3.11 --version
python3.11 -m pip install --upgrade pip
pip3 install --upgrade pip
pip3 install pytest
Expand Down
1 change: 1 addition & 0 deletions python/tests/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
message(STATUS "${Python3_EXECUTABLE}")
execute_process(COMMAND ${Python3_EXECUTABLE} -m pytest --version RESULT_VARIABLE PYTEST_result OUTPUT_QUIET ERROR_QUIET)
if(${PYTEST_result} EQUAL 0)
set(PYTHON_TESTS ON)
Expand Down

0 comments on commit b8440e1

Please sign in to comment.