From 95f46a1ff83ba400429adcecab6c1a016b92b061 Mon Sep 17 00:00:00 2001 From: Raghuveer Devulapalli Date: Mon, 18 Sep 2023 15:19:05 -0700 Subject: [PATCH 1/3] update CI that builds NumPy --- .github/workflows/build-numpy.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-numpy.yml b/.github/workflows/build-numpy.yml index 19cf006f..91ed2524 100644 --- a/.github/workflows/build-numpy.yml +++ b/.github/workflows/build-numpy.yml @@ -56,12 +56,20 @@ jobs: git fetch temp git checkout temp/pr-branch - - name: Build & run NumPy sort tests + - name: Build NumPy working-directory: ${{ github.workspace }}/numpy env: CXX: g++-12 CC: gcc-12 run: | - python runtests.py -t numpy/core/tests/test_multiarray.py + spin build -- -Dallow-noblas=true + + - name: Run multiarray tests + run: | + export NUMPY_SITE=$(realpath build-install/usr/lib/python*/site-packages/) + export PYTHONPATH="$PYTHONPATH:$NUMPY_SITE" + cd build-install && + python -c "import numpy; numpy.show_config()" && + python -m pytest $NUMPY_SITE/numpy/core/tests/test_multiarray.py From bfbcf67e2d45c4e174e6a1dae148abfc8977e6bc Mon Sep 17 00:00:00 2001 From: Raghuveer Devulapalli Date: Tue, 19 Sep 2023 09:21:17 -0700 Subject: [PATCH 2/3] Fix paths --- .github/workflows/build-numpy.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/build-numpy.yml b/.github/workflows/build-numpy.yml index 91ed2524..9a711150 100644 --- a/.github/workflows/build-numpy.yml +++ b/.github/workflows/build-numpy.yml @@ -56,16 +56,13 @@ jobs: git fetch temp git checkout temp/pr-branch - - name: Build NumPy + - name: Build and run NumPy tests working-directory: ${{ github.workspace }}/numpy env: CXX: g++-12 CC: gcc-12 run: | spin build -- -Dallow-noblas=true - - - name: Run multiarray tests - run: | export NUMPY_SITE=$(realpath build-install/usr/lib/python*/site-packages/) export PYTHONPATH="$PYTHONPATH:$NUMPY_SITE" cd build-install && From 3e09910e6e4c8d9af35f09f9b1781e0a141e48c5 Mon Sep 17 00:00:00 2001 From: Raghuveer Devulapalli Date: Tue, 19 Sep 2023 09:21:58 -0700 Subject: [PATCH 3/3] Use python 3.11 --- .github/workflows/build-numpy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-numpy.yml b/.github/workflows/build-numpy.yml index 9a711150..cda490f9 100644 --- a/.github/workflows/build-numpy.yml +++ b/.github/workflows/build-numpy.yml @@ -40,7 +40,7 @@ jobs: - uses: actions/setup-python@v4 with: - python-version: '3.10' + python-version: '3.11' - name: Install NumPy dependencies working-directory: ${{ github.workspace }}/numpy