|
66 | 66 | if: github.event_name != 'push' |
67 | 67 | strategy: |
68 | 68 | matrix: |
69 | | - python-version: ["3.9", "3.10", "3.11", "pypy3.9-v7.3.11"] |
| 69 | + python-version: ["3.9", "3.10", "3.11", "pypy3.9-v7.3.12"] |
70 | 70 | env: |
71 | 71 | EXPECT_CPU_FEATURES: "SSE SSE2 SSE3 SSSE3 SSE41 POPCNT SSE42 AVX F16C FMA3 AVX2 AVX512F AVX512CD AVX512_KNL AVX512_KNM AVX512_SKX AVX512_CLX AVX512_CNL AVX512_ICL" |
72 | 72 | steps: |
|
96 | 96 | # for add-apt-repository |
97 | 97 | sudo apt install software-properties-common -y |
98 | 98 | sudo add-apt-repository ppa:deadsnakes/ppa -y |
99 | | - sudo apt install python3.9-dev -y |
| 99 | + sudo apt install python3.9-dev ninja-build -y |
100 | 100 | sudo ln -s /usr/bin/python3.9 /usr/bin/pythonx |
101 | 101 | pythonx -m pip install --upgrade pip setuptools wheel |
102 | 102 | pythonx -m pip install -r test_requirements.txt |
@@ -195,6 +195,7 @@ jobs: |
195 | 195 | - uses: actions/setup-python@61a6322f88396a6271a6ee3565807d608ecaddd1 # v4.7.0 |
196 | 196 | with: |
197 | 197 | python-version: ${{ env.PYTHON_VERSION }} |
| 198 | + |
198 | 199 | - uses: ./.github/actions |
199 | 200 |
|
200 | 201 | blas64: |
@@ -287,26 +288,6 @@ jobs: |
287 | 288 | python-version: ${{ env.PYTHON_VERSION }} |
288 | 289 | - uses: ./.github/actions |
289 | 290 |
|
290 | | - numpy2_flag: |
291 | | - needs: [smoke_test] |
292 | | - runs-on: ubuntu-latest |
293 | | - if: github.event_name != 'push' |
294 | | - env: |
295 | | - # Test for numpy-2.0 feature-flagged behavior. |
296 | | - NPY_NUMPY_2_BEHAVIOR: 1 |
297 | | - # Using the future "weak" state doesn't pass tests |
298 | | - # currently unfortunately |
299 | | - NPY_PROMOTION_STATE: legacy |
300 | | - steps: |
301 | | - - uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2 |
302 | | - with: |
303 | | - submodules: recursive |
304 | | - fetch-depth: 0 |
305 | | - - uses: actions/setup-python@bd6b4b6205c4dbad673328db7b31b7fab9e241c0 # v4.6.1 |
306 | | - with: |
307 | | - python-version: ${{ env.PYTHON_VERSION }} |
308 | | - - uses: ./.github/actions |
309 | | - |
310 | 291 | no_openblas: |
311 | 292 | needs: [smoke_test] |
312 | 293 | runs-on: ubuntu-latest |
@@ -361,11 +342,10 @@ jobs: |
361 | 342 | sudo apt update |
362 | 343 | sudo apt install -y gcc-arm-linux-gnueabihf g++-arm-linux-gnueabihf gfortran-arm-linux-gnueabihf |
363 | 344 |
|
364 | | - # Keep the `test_requirements.txt` dependency-subset synced |
365 | | - docker run --name the_container --interactive -v /:/host arm32v7/ubuntu:22.04 /bin/bash -c " |
| 345 | + docker run --name the_container --interactive -v /:/host -v $(pwd):/numpy arm32v7/ubuntu:22.04 /bin/bash -c " |
366 | 346 | apt update && |
367 | 347 | apt install -y git python3 python3-dev python3-pip && |
368 | | - python3 -m pip install cython==0.29.34 setuptools\<49.2.0 hypothesis==6.23.3 pytest==6.2.5 'typing_extensions>=4.2.0' && |
| 348 | + python3 -m pip install -r /numpy/test_requirements.txt |
369 | 349 | ln -s /host/lib64 /lib64 && |
370 | 350 | ln -s /host/lib/x86_64-linux-gnu /lib/x86_64-linux-gnu && |
371 | 351 | ln -s /host/usr/arm-linux-gnueabihf /usr/arm-linux-gnueabihf && |
@@ -443,7 +423,7 @@ jobs: |
443 | 423 | python-version: ${{ env.PYTHON_VERSION }} |
444 | 424 | - name: Install Intel SDE |
445 | 425 | run: | |
446 | | - curl -o /tmp/sde.tar.xz https://downloadmirror.intel.com/751535/sde-external-9.14.0-2022-10-25-lin.tar.xz |
| 426 | + curl -o /tmp/sde.tar.xz https://downloadmirror.intel.com/784319/sde-external-9.24.0-2023-07-13-lin.tar.xz |
447 | 427 | mkdir /tmp/sde && tar -xvf /tmp/sde.tar.xz -C /tmp/sde/ |
448 | 428 | sudo mv /tmp/sde/* /opt/sde && sudo ln -s /opt/sde/sde64 /usr/bin/sde |
449 | 429 | - name: Install dependencies |
@@ -454,14 +434,14 @@ jobs: |
454 | 434 | run: | |
455 | 435 | export CC=/usr/bin/gcc-12 |
456 | 436 | export CXX=/usr/bin/g++-12 |
457 | | - python -m pip install -e . |
| 437 | + python setup.py develop |
458 | 438 | - name: Show config |
459 | 439 | run: | |
460 | 440 | python -c "import numpy as np; np.show_config()" |
461 | 441 | # Run only a few tests, running everything in an SDE takes a long time |
462 | 442 | # Using pytest directly, unable to use python runtests.py -n -t ... |
463 | | - # Disabled running in the SDE because of an SDE bug |
464 | 443 | - name: Run linalg/ufunc/umath tests |
465 | 444 | run: | |
466 | 445 | python -m pytest numpy/core/tests/test_umath* numpy/core/tests/test_ufunc.py numpy/linalg/tests/test_* |
| 446 | + # Can't run on SDE just yet: see https://github.com/numpy/numpy/issues/23545#issuecomment-1659047365 |
467 | 447 | #sde -spr -- python -m pytest numpy/core/tests/test_umath* numpy/core/tests/test_ufunc.py numpy/linalg/tests/test_* |