8000 MAINT: Split up .github/workflows to match main by charris · Pull Request #25071 · numpy/numpy · GitHub
[go: up one dir, main page]

Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
CI: Switch SIMD tests to meson
Backport of #24625.
  • Loading branch information
charris committed Nov 6, 2023
commit c40e98cc15d95b1f5fe48af691cfc005773d8a4c
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::"
Loading
0