@@ -343,8 +343,16 @@ jobs:
343
343
steps :
344
344
- uses : actions/checkout@v4
345
345
346
- - name : Add wget and python3
347
- run : apt-get update && apt-get install -y python3-dev python3-numpy python3-pytest libeigen3-dev
346
+ - name : Add python3
347
+ run : apt-get update && apt-get install -y python3-dev libeigen3-dev
348
+
349
+ - name : Install uv
350
+ uses : astral-sh/setup-uv@v6
351
+ with :
352
+ enable-cache : true
353
+
354
+ - name : Prepare env
355
+ run : uv pip install --python=python3 --system -r tests/requirements.txt
348
356
349
357
- name : Configure
350
358
shell : bash
@@ -380,7 +388,15 @@ jobs:
380
388
381
389
# tzdata will try to ask for the timezone, so set the DEBIAN_FRONTEND
382
390
- name : Install 🐍 3
383
- run : apt-get update && DEBIAN_FRONTEND="noninteractive" apt-get install -y cmake git python3-dev python3-pytest python3-numpy
391
+ run : apt-get update && DEBIAN_FRONTEND="noninteractive" apt-get install -y cmake git python3-dev
392
+
393
+ - name : Install uv
394
+ uses : astral-sh/setup-uv@v6
395
+ with :
396
+ enable-cache : true
397
+
398
+ - name : Prepare env
399
+ run : uv pip install --python=python3 --system -r tests/requirements.txt
384
400
385
401
- name : Configure
386
402
run : cmake -S . -B build -DPYBIND11_CUDA_TESTS=ON -DPYBIND11_WERROR=ON -DDOWNLOAD_CATCH=ON
@@ -455,11 +471,11 @@ jobs:
455
471
- name : Install 🐍 3 & NVHPC
456
472
run : |
457
473
sudo apt-get update -y && \
458
- sudo apt-get install -y cmake environment-modules git python3-dev python3-pip python3-numpy && \
474
+ sudo apt-get install -y cmake environment-modules git python3-dev python3-pip && \
459
475
sudo apt-get install -y --no-install-recommends nvhpc-23-5 && \
460
476
sudo rm -rf /var/lib/apt/lists/*
461
477
python3 -m pip install --upgrade pip
462
- python3 -m pip install --upgrade pytest
478
+ python3 -m pip install --system -r tests/requirements.txt
463
479
464
480
# On some systems, you many need further workarounds:
465
481
# https://github.com/pybind/pybind11/pull/2475
@@ -506,10 +522,15 @@ jobs:
506
522
- uses : actions/checkout@v4
507
523
508
524
- name : Add Python 3
509
- run : apt-get update; apt-get install -y python3-dev python3-numpy python3-pytest python3-pip libeigen3-dev
525
+ run : apt-get update; apt-get install -y python3-dev libeigen3-dev
510
526
511
- - name : Update pip
512
- run : python3 -m pip install --upgrade pip
527
+ - name : Install uv
528
+ uses : astral-sh/setup-uv@v6
529
+ with :
530
+ enable-cache : true
531
+
532
+ - name : Prepare env
533
+ run : uv pip install --python=python3 --system -r tests/requirements.txt
513
534
514
535
- name : Update CMake
515
536
@@ -724,7 +745,7 @@ jobs:
724
745
run : |
725
746
apt-get update
726
747
apt-get install -y git make cmake g++ libeigen3-dev python3-dev python3-pip
727
- pip3 install "pytest==6.*"
748
+ pip3 install -r tests/requirements.txt
728
749
729
750
- name : Configure for install
730
751
run : >
@@ -977,7 +998,6 @@ jobs:
977
998
mingw-w64-${{matrix.env}}-python-pip
978
999
mingw-w64-${{matrix.env}}-cmake
979
1000
mingw-w64-${{matrix.env}}-make
980
- mingw-w64-${{matrix.env}}-python-pytest
981
1001
mingw-w64-${{matrix.env}}-boost
982
1002
mingw-w64-${{matrix.env}}-catch
983
1003
@@ -986,12 +1006,19 @@ jobs:
986
1006
with :
987
1007
msystem : ${{matrix.sys}}
988
1008
install : >-
989
- mingw-w64-${{matrix.env}}-python-numpy
990
- mingw-w64-${{matrix.env}}-python-scipy
991
1009
mingw-w64-${{matrix.env}}-eigen3
992
1010
993
1011
- uses : actions/checkout@v4
994
1012
1013
+ - name : Install uv
1014
+ uses : astral-sh/setup-uv@v6
1015
+ with :
1016
+ enable-cache : true
1017
+
1018
+ - name : Prepare env
1019
+ run : uv pip install --python=python --system -r tests/requirements.txt
1020
+
1021
+
995
1022
- name : Configure C++11
996
1023
# LTO leads to many undefined reference like
997
1024
# `pybind11::detail::function_call::function_call(pybind11::detail::function_call&&)
0 commit comments