Update Cython 3 and Numpy 2 #150
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# 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.9", "3.10", "3.11", "3.12" ] | |
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 | |
run: | | |
python -m pip install --upgrade pip | |
python -m pip install --upgrade setuptools>=42 setuptools_scm 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 |