-
Notifications
You must be signed in to change notification settings - Fork 2
38 lines (30 loc) · 1.05 KB
/
Copy pathtest-macos.yml
File metadata and controls
38 lines (30 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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/ -v
- 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"