BLD:GH: Add GitHub Actions #2
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: Test Linux (Conda + MKL) | |
| on: | |
| pull_request: | |
| jobs: | |
| test-conda-mkl: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup Miniconda | |
| uses: conda-incubator/setup-miniconda@v3 | |
| with: | |
| python-version: '3.13' | |
| channels: conda-forge | |
| channel-priority: strict | |
| - name: Install dependencies with conda | |
| shell: bash -l {0} | |
| run: | | |
| conda install -y \ | |
| meson \ | |
| ninja \ | |
| numpy \ | |
| pytest \ | |
| mkl \ | |
| mkl-devel \ | |
| compilers | |
| - name: Build SLICUTLET | |
| shell: bash -l {0} | |
| run: | | |
| meson setup build -Dpython=true | |
| meson install -C build --destdir="${PWD}/build-install" | |
| - name: Run tests | |
| shell: bash -l {0} | |
| run: | | |
| export PYTHONPATH="${PWD}/build-install/usr/local/lib/python3.13/site-packages" | |
| pytest python/tests/ -v | |
| - name: Show BLAS info | |
| shell: bash -l {0} | |
| run: | | |
| export PYTHONPATH="${PWD}/build-install/usr/local/lib/python3.13/site-packages" | |
| python -c "import numpy as np; np.show_config()" |