Skip to content

Commit c311b0f

Browse files
committed
add pip build workflow
1 parent de88929 commit c311b0f

1 file changed

Lines changed: 50 additions & 0 deletions

File tree

.github/workflows/build_pip.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
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-service
13+
MODULE_NAME: mkl-service
14+
TEST_ENV_NAME: test_mkl_service
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+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
30+
with:
31+
fetch-depth: 0
32+
33+
- uses: conda-incubator/setup-miniconda@fc2d68f6413eb2d87b895e92f8584b5b94a10167 # v3.3.0
34+
with:
35+
miniforge-version: latest
36+
channels: conda-forge
37+
activate-environment: test
38+
python-version: ${{ matrix.python }}
39+
40+
- name: Install MKL
41+
run: |
42+
conda install mkl-devel mkl
43+
44+
- name: Build conda package
45+
run: |
46+
pip install --no-cache-dir meson-python ninja cmake cython
47+
pip install --no-cache-dir numpy ${{ matrix.use_pre }}
48+
pip install -e ".[test]" --no-build-isolation --verbose
49+
pip list
50+
python -m pytest -v mkl/tests

0 commit comments

Comments
 (0)