Skip to content

Np2 support

Np2 support #141

Workflow file for this run

#
# Test that the package can be installed using legacy method: `python setup.py install`
#
name: setup.py
on:
pull_request:
push:
branches:
- master
defaults:
run:
shell: bash
jobs:
build-install-test:
strategy:
fail-fast: false
matrix:
# Disable MacOS testing because it's being dumb
# os: [ ubuntu-20.04, ubuntu-22.04, windows-latest, macos-latest ]
os: [ ubuntu-20.04, ubuntu-22.04, windows-latest ]
python: [ "3.8", "3.9", "3.10", "3.11", "3.12" ]
numpy: ["1", "2"]
exclude:
- python: "3.8"
numpy: "2"
- python: "3.9"
numpy: "2"
runs-on: ${{ matrix.os }}
steps:
- name: Install MSBuild
if: runner.os == 'Windows'
uses: microsoft/[email protected]
with:
msbuild-architecture: x64
- uses: actions/checkout@v4
with:
submodules: true
- name: Setup Python ${{ matrix.python }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
- name: Install build dependencies numpy ${{ matrix.numpy }}
run: |
python -m pip install --upgrade pip
python -m pip install --upgrade setuptools>=42 setuptools_scm numpy==${{ matrix.numpy }}.* Cython
- name: Build and install eigency
run: |
python setup.py build
python setup.py install
- name: Test eigency
run: |
cd tests
python setup.py build
python setup.py install
mkdir test_run
cp run_tests.py test_run/.
cd test_run
python run_tests.py