BLD:GH: Add GitHub Actions #12
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 macOS (Accelerate) | |
| on: | |
| pull_request: | |
| jobs: | |
| test-macos: | |
| runs-on: macos-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.13' | |
| - name: Install dependencies | |
| run: | | |
| python3 -m pip install --upgrade pip | |
| python3 -m pip install meson ninja numpy pytest | |
| - name: Build SLICUTLET (using Accelerate) | |
| run: | | |
| # Accelerate is built-in on macOS | |
| meson setup build -Dpython=true | |
| meson install -C build --destdir="${PWD}/build-install" | |
| - name: Run tests | |
| run: | | |
| export PYTHONPATH="${PWD}/build-install/usr/local/lib/python3.13/site-packages" | |
| export DYLD_LIBRARY_PATH="${PWD}/build-install/usr/local/lib:${DYLD_LIBRARY_PATH}" | |
| pytest python/tests/ | |
| - name: Verify Accelerate linkage | |
| run: | | |
| # Check that the library links to Accelerate framework | |
| otool -L build/libslicutlet.*.dylib | grep Accelerate || echo "Warning: Not linked to Accelerate" |