Skip to content

Commit

Permalink
Merge pull request #25071 from charris/backport-24291-24493
Browse files Browse the repository at this point in the history
MAINT: Split up .github/workflows to match main
  • Loading branch information
charris committed Nov 6, 2023
2 parents 1989099 + 39d854f commit 7387600
Show file tree
Hide file tree
Showing 11 changed files with 634 additions and 819 deletions.
1 change: 0 additions & 1 deletion .github/actions/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ runs:
echo DOWNLOAD_OPENBLAS $DOWNLOAD_OPENBLAS
echo USE_DEBUG $USE_DEBUG
echo NPY_USE_BLAS_ILP64 $NPY_USE_BLAS_ILP64
echo NUMPY_EXPERIMENTAL_ARRAY_FUNCTION $NUMPY_EXPERIMENTAL_ARRAY_FUNCTION
echo USE_ASV $USE_ASV
echo PATH $PATH
echo python `which python`
Expand Down
36 changes: 22 additions & 14 deletions .github/meson_actions/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,27 +3,35 @@ description: "checkout repo, build, and test numpy"
runs:
using: composite
steps:
- name: Install dependencies
shell: bash
run: pip install -r build_requirements.txt
- name: Build
shell: 'script -q -e -c "bash --noprofile --norc -eo pipefail {0}"'
env:
TERM: xterm-256color
run:
spin build -- ${MESON_ARGS[@]}
- name: Check build-internal dependencies
shell: bash
run:
ninja -C build -t missingdeps
- name: Check installed test and stub files
PKG_CONFIG_PATH: ./.openblas
run: |
echo "::group::Installing Build Dependencies"
pip install -r build_requirements.txt
echo "::endgroup::"
echo "::group::Building NumPy"
spin build --clean -- ${MESON_ARGS[@]}
echo "::endgroup::"
- name: Meson Log
shell: bash
run:
python tools/check_installed_files.py $(find ./build-install -path '*/site-packages/numpy')
if: always()
run: |
echo "::group::Meson Log"
cat build/meson-logs/meson-log.txt
echo "::endgroup::"
- name: Test
shell: 'script -q -e -c "bash --noprofile --norc -eo pipefail {0}"'
env:
TERM: xterm-256color
run: |
pip install pytest pytest-xdist hypothesis typing_extensions
spin test -j auto
echo "::group::Installing Test Dependencies"
pip install pytest pytest-xdist hypothesis typing_extensions setuptools
echo "::endgroup::"
echo "::group::Test NumPy"
spin test
echo "::endgroup::"

0 comments on commit 7387600

Please sign in to comment.