diff --git a/.github/workflows/build_pip.yaml b/.github/workflows/build_pip.yaml new file mode 100644 index 0000000..f3d9e2e --- /dev/null +++ b/.github/workflows/build_pip.yaml @@ -0,0 +1,38 @@ +name: Conda package + +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 mkl-devel + + - name: Build conda package + run: | + pip install --no-cache-dir cython + pip install -e . --no-build-isolation + pytest -m pytest/tests