Skip to content

Migrated to use scikit-build-core #378

Migrated to use scikit-build-core

Migrated to use scikit-build-core #378

Workflow file for this run

name: Tests
on: [push, pull_request]
jobs:
build_wheels:
name: Build and test on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
python-version: ["3.10"]
steps:
- uses: actions/checkout@v4
with:
submodules: 'recursive'
# - uses: conda-incubator/setup-miniconda@v2
# with:
# auto-update-conda: true
# python-version: ${{ matrix.python-version }}
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install Ninja
uses: seanmiddleditch/gha-setup-ninja@master
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install -r requirements-build.txt
python -m pip install -r requirements-tests.txt
# For some reason, the created ndindex wheel issues the next error on Win:
# ImportError: DLL load failed while importing ndindex: %1 is not a valid Win32 application.
# As a workaround, we install ndindex from conda-forge, but this should be fixed somehow
# This has been fixed; see https://github.com/Quansight-Labs/ndindex/issues/156
# conda install -c conda-forge ndindex
python -m pip install -r requirements-runtime.txt
- name: Build
run: |
python setup.py build_ext --inplace
- name: Test
run: |
python -m pytest