Skip to content

Commit 53e8995

Browse files
Build on Linux using pip
1 parent 3c5c2a2 commit 53e8995

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

.github/workflows/build_pip.yaml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Editable build using pip
2+
3+
on: push
4+
5+
permissions: read-all
6+
7+
env:
8+
PACKAGE_NAME: mkl_fft
9+
MODULE_NAME: mkl_fft
10+
TEST_ENV_NAME: test_mkl_fft
11+
12+
jobs:
13+
build:
14+
runs-on: ubuntu-latest
15+
strategy:
16+
matrix:
17+
python: ['3.9', '3.10', '3.11', '3.12']
18+
19+
steps:
20+
- uses: actions/checkout@v4
21+
with:
22+
fetch-depth: 0
23+
24+
- name: Set pkgs_dirs
25+
run: |
26+
echo "pkgs_dirs: [~/.conda/pkgs]" >> ~/.condarc
27+
28+
- name: Add conda to system path
29+
run: echo $CONDA/bin >> $GITHUB_PATH
30+
31+
- name: Install MKL
32+
run: conda install -c conda-forge mkl-devel mkl-service --override-channels
33+
34+
- name: Build conda package
35+
run: |
36+
pip install --no-cache-dir cython pytest hypothesis
37+
pip install --no-cache-dir numpy --pre
38+
pip install -e . --no-build-isolation
39+
python -m pytest -v mkl_fft/tests

0 commit comments

Comments
 (0)