Move build system to meson-python
#9
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build using pip and pre-release NumPy | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| permissions: read-all | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| shell: bash -el {0} | |
| strategy: | |
| matrix: | |
| python: ['3.10', '3.11', '3.12', '3.13', '3.14'] | |
| use_pre: ["", "--pre"] | |
| steps: | |
| - name: Checkout repo | |
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| with: | |
| fetch-depth: 0 | |
| - uses: conda-incubator/setup-miniconda@8ee1f361103df19b6f8c8655fd3967a8ecb162d5 # v4.0.1 | |
| with: | |
| use-mamba: true | |
| miniforge-version: latest | |
| channels: https://software.repos.intel.com/python/conda, conda-forge | |
| conda-remove-defaults: true | |
| activate-environment: test | |
| python-version: ${{ matrix.python }} | |
| - name: Install Compiler and MKL | |
| run: | | |
| conda install mkl-devel dpcpp_linux-64 | |
| python -c "import sys; print(sys.executable)" | |
| which python | |
| - name: Build with pip | |
| run: | | |
| pip install --no-cache-dir meson-python ninja cmake cython | |
| pip install --no-cache-dir numpy ${{ matrix.use_pre }} | |
| CC=icx pip install -e . --no-build-isolation --no-deps --verbose | |
| pip install --no-cache-dir pytest | |
| pip list | |
| python -m pytest -sv --pyargs mkl_umath |