@@ -235,7 +235,7 @@ jobs:
235235 unit_testing : OFF
236236 context : PATH=/Library/Frameworks/Python.framework/Versions/Current/bin:$PATH
237237 target : python_unit_testing
238- pip_install_prerequisites : sudo pip3 install cmake scikit-build
238+ pip_install_prerequisites : sudo uv pip install --system cmake scikit-build
239239 pip_install_test_and_uninstall : ON
240240 - name : ' Code formatting'
241241 os : ubuntu-22.04
@@ -338,7 +338,7 @@ jobs:
338338 - name : Check out libOpenCOR
339339 uses : actions/checkout@v4
340340 - name : Install Python
341- if : ${{ matrix.python_support == 'ON' }}
341+ if : ${{ matrix.documentation == 'ON' || matrix. python_support == 'ON' || matrix.target == 'python_check_code_formatting ' }}
342342 uses : actions/setup-python@v5
343343 with :
344344 python-version : ' 3.11'
@@ -380,20 +380,23 @@ jobs:
380380 - name : Install Prettier
381381 if : ${{ matrix.target == 'javascript_check_code_formatting' }}
382382 run : brew install --overwrite prettier
383+ - name : Install uv
384+ if : ${{ matrix.documentation == 'ON' || matrix.python_support == 'ON' || matrix.target == 'python_check_code_formatting' }}
385+ uses : astral-sh/setup-uv@v6
383386 - name : Install Black
384387 if : ${{ matrix.target == 'python_check_code_formatting' }}
385- run : pip3 install black
388+ run : uv pip install --system black
386389 - name : Install Valgrind
387390 if : ${{ matrix.memory_checks == 'ON' }}
388391 run : |
389392 sudo apt update
390393 sudo apt install valgrind
391394 - name : Install pytest and pytest-html
392395 if : ${{ matrix.python_support == 'ON' }}
393- run : pip3 install pytest pytest-html
396+ run : uv pip install --system pytest pytest-html
394397 - name : Install Sphinx and some Sphinx packages
395398 if : ${{ matrix.documentation == 'ON' }}
396- run : pip3 install sphinx sphinx-copybutton sphinx-inline-tabs
399+ run : uv pip install --system sphinx sphinx-copybutton sphinx-inline-tabs
397400 - name : Install Doxygen
398401 if : ${{ matrix.documentation == 'ON' }}
399402 run : |
@@ -470,15 +473,15 @@ jobs:
470473 if : ${{ matrix.pip_install_test_and_uninstall == 'ON' }}
471474 run : |
472475 ${{ matrix.pip_install_prerequisites }}
473- pip3 install .
476+ uv pip install --system .
474477 - name : Test libOpenCOR Python
475478 if : ${{ matrix.pip_install_test_and_uninstall == 'ON' }}
476479 run : |
477480 cd tests/install/bindings/python
478481 python3 test_install.py
479482 - name : pip uninstall libOpenCOR
480483 if : ${{ matrix.pip_install_test_and_uninstall == 'ON' }}
481- run : pip3 uninstall -y libopencor
484+ run : uv pip uninstall --system libopencor
482485 spell_check :
483486 name : Spell check
484487 runs-on : ubuntu-22.04
0 commit comments