-
Notifications
You must be signed in to change notification settings - Fork 2
50 lines (42 loc) · 1.31 KB
/
test-linux-conda.yml
File metadata and controls
50 lines (42 loc) · 1.31 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
39
40
41
42
43
44
45
46
47
48
49
50
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"
export LD_LIBRARY_PATH="${PWD}/build-install/usr/local/lib/x86_64-linux-gnu:${LD_LIBRARY_PATH}"
pytest python/tests/
- name: Show BLAS info
shell: bash -l {0}
run: |
export PYTHONPATH="${PWD}/build-install/usr/local/lib/python3.13/site-packages"
export LD_LIBRARY_PATH="${PWD}/build-install/usr/local/lib/x86_64-linux-gnu:${LD_LIBRARY_PATH}"
python -c "import numpy as np; np.show_config()"