Skip to content

Commit

Permalink
ci: add Python testing to cmake matrix (#519)
Browse files Browse the repository at this point in the history
  • Loading branch information
janden authored Oct 15, 2024
1 parent cfe1e33 commit 4aae46f
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/cmake_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,33 @@ jobs:
working-directory: ./build
run: |
ctest -C ${{matrix.build_type}} --output-on-failure
- name: Set up Python
if: matrix.finufft_static_linking
uses: actions/setup-python@v5
with:
python-version: '3.10'

- name: Build Python wheels
if: matrix.finufft_static_linking
env:
MACOSX_DEPLOYMENT_TARGET: 13
shell: bash
run: |
python3 -m pip install \
--verbose \
-C cmake.define.CMAKE_BUILD_TYPE=${{ matrix.build_type }} \
-C cmake.define.FINUFFT_ARCH_FLAGS=${{ matrix.arch_flags }} \
-C cmake.define.FINUFFT_USE_DUCC0=${{ matrix.ducc_fft }} \
python/finufft
- name: Install pytest
if: matrix.finufft_static_linking
run: |
python3 -m pip install --upgrade pip
python3 -m pip install pytest
- name: Test Python package
if: matrix.finufft_static_linking
run: |
python3 -m pytest python/finufft/test

0 comments on commit 4aae46f

Please sign in to comment.