Skip to content

Commit

Permalink
Build on Linux using pip
Browse files Browse the repository at this point in the history
  • Loading branch information
oleksandr-pavlyk committed May 25, 2024
1 parent 3c5c2a2 commit 48d716b
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/build_pip.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Editable build using pip

on: push

permissions: read-all

env:
PACKAGE_NAME: mkl_fft
MODULE_NAME: mkl_fft
TEST_ENV_NAME: test_mkl_fft

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python: ['3.9', '3.10', '3.11', '3.12']

steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Set pkgs_dirs
run: |
echo "pkgs_dirs: [~/.conda/pkgs]" >> ~/.condarc
- name: Add conda to system path
run: echo $CONDA/bin >> $GITHUB_PATH

- name: Install MKL
run: conda install -c conda-forge mkl-devel mkl-service --override-channels

- name: Build conda package
run: |
pip install --no-cache-dir cython pytest hypothesis
pip install --no-cache-dir numpy --pre
pip install -e . --no-build-isolation
python -m pytest -v pytest/tests

0 comments on commit 48d716b

Please sign in to comment.