Skip to content

Commit 2cb3957

Browse files
committed
add pip build
1 parent 8108bac commit 2cb3957

File tree

1 file changed

+58
-0
lines changed

1 file changed

+58
-0
lines changed

.github/workflows/build_pip.yml

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
name: Editable build using pip and pre-release NumPy
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
9+
permissions: read-all
10+
11+
env:
12+
PACKAGE_NAME: mkl_random
13+
MODULE_NAME: mkl_random
14+
TEST_ENV_NAME: test_mkl_random
15+
16+
jobs:
17+
build:
18+
runs-on: ubuntu-latest
19+
defaults:
20+
run:
21+
shell: bash -el {0}
22+
23+
strategy:
24+
matrix:
25+
python: ["3.10", "3.11", "3.12", "3.13", "3.14"]
26+
use_pre: ["", "--pre"]
27+
28+
steps:
29+
- name: Install jq
30+
shell: bash -l {0}
31+
run: |
32+
sudo apt-get install jq
33+
34+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
35+
with:
36+
fetch-depth: 0
37+
38+
- uses: conda-incubator/setup-miniconda@fc2d68f6413eb2d87b895e92f8584b5b94a10167 # v3.3.0
39+
with:
40+
miniforge-version: latest
41+
channels: conda-forge
42+
activate-environment: test
43+
python-version: ${{ matrix.python }}
44+
45+
- name: Install MKL
46+
run: |
47+
conda install mkl-devel mkl-service
48+
python -c "import sys; print(sys.executable)"
49+
which python
50+
python -c "import mkl; print(mkl.__file__)"
51+
52+
- name: Build conda package
53+
run: |
54+
pip install --no-cache-dir meson-python ninja cmake cython
55+
pip install --no-cache-dir numpy ${{ matrix.use_pre }}
56+
pip install -e ".[test]" --no-build-isolation --verbose
57+
pip list
58+
python -m pytest -v mkl_random/tests

0 commit comments

Comments
 (0)