From e364bafe5b6b32f96a027980be4c03c4ff5da8ff Mon Sep 17 00:00:00 2001 From: Oleksandr Pavlyk Date: Fri, 24 May 2024 19:57:24 -0500 Subject: [PATCH] Build on Linux using pip --- .github/workflows/build_pip.yaml | 39 ++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .github/workflows/build_pip.yaml diff --git a/.github/workflows/build_pip.yaml b/.github/workflows/build_pip.yaml new file mode 100644 index 0000000..075bd05 --- /dev/null +++ b/.github/workflows/build_pip.yaml @@ -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 intel mkl-devel intel-openmp --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 + pytest -m pytest/tests