-
Notifications
You must be signed in to change notification settings - Fork 24
62 lines (52 loc) · 1.56 KB
/
build_pip.yaml
File metadata and controls
62 lines (52 loc) · 1.56 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
51
52
53
54
55
56
57
58
59
60
61
62
name: Editable build using pip and pre-release NumPy
on:
push:
branches:
- master
pull_request:
permissions: read-all
env:
PACKAGE_NAME: mkl_fft
MODULE_NAME: mkl_fft
TEST_ENV_NAME: test_mkl_fft
jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
shell: bash -el {0}
strategy:
matrix:
python: ['3.10', '3.11', '3.12', '3.13']
use_pre: ["", "--pre"]
steps:
- name: Install jq
shell: bash -l {0}
run: |
sudo apt-get install jq
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
with:
fetch-depth: 0
- uses: conda-incubator/setup-miniconda@835234971496cad1653abb28a638a281cf32541f # v3.2.0
with:
use-mamba: true
miniforge-version: latest
channels: conda-forge
conda-remove-defaults: true
activate-environment: test
python-version: ${{ matrix.python }}
- name: Install MKL
run: |
conda install mkl-devel mkl-service
python -c "import sys; print(sys.executable)"
which python
python -c "import mkl; print(mkl.__file__)"
- name: Build conda package
run: |
pip install --no-cache-dir cython setuptools
pip install --no-cache-dir numpy ${{ matrix.use_pre }}
echo "CONDA_PREFFIX is '${CONDA_PREFIX}'"
export MKLROOT=${CONDA_PREFIX}
pip install -e .[test] --no-build-isolation --verbose
pip list
python -m pytest -v mkl_fft/tests