BLD More debug information when numpy cannot be imported #61
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
name: Test mahotas | |
on: [push] | |
jobs: | |
build-linux: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: | |
- '3.7' | |
- '3.8' | |
- '3.9' | |
- '3.10' | |
- '3.11' | |
numpy-version: | |
- '1.19' | |
- '1.20' | |
- '1.21' | |
- '1.22' | |
- '1.23' | |
- '1.24' | |
- '1.25' | |
- '1.26' | |
exclude: | |
# 3.7 is too old for NumPy 1.22+ | |
- python-version: '3.7' | |
numpy-version: '1.22' | |
- python-version: '3.7' | |
numpy-version: '1.23' | |
- python-version: '3.7' | |
numpy-version: '1.24' | |
- python-version: '3.7' | |
numpy-version: '1.25' | |
- python-version: '3.7' | |
numpy-version: '1.26' | |
# 3.8 is too old for NumPy 1.25+ | |
- python-version: '3.8' | |
numpy-version: '1.25' | |
- python-version: '3.8' | |
numpy-version: '1.26' | |
# NumPy 1.19 is not available on 3.7-9 | |
- python-version: '3.7' | |
numpy-version: '1.19' | |
- python-version: '3.8' | |
numpy-version: '1.19' | |
- python-version: '3.9' | |
numpy-version: '1.19' | |
# NumPy <1.21 are too old for Python 3.10 | |
- python-version: '3.10' | |
numpy-version: '1.19' | |
- python-version: '3.10' | |
numpy-version: '1.20' | |
# NumPy <1.23 are too old for Python 3.11 | |
- python-version: '3.11' | |
numpy-version: '1.19' | |
- python-version: '3.11' | |
numpy-version: '1.20' | |
- python-version: '3.11' | |
numpy-version: '1.21' | |
- python-version: '3.11' | |
numpy-version: '1.22' | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: mamba-org/setup-micromamba@v1 | |
with: | |
cache-environment: true | |
cache-downloads: false | |
environment-name: mahotas_test_env | |
create-args: python=${{ matrix.python-version }} numpy=${{ matrix.numpy-version }} | |
- name: Install dependencies | |
shell: bash -l {0} | |
run: | | |
micromamba install --file tests-requirements.txt --name mahotas_test_env | |
- name: Build | |
shell: bash -l {0} | |
run: | | |
make debug | |
- name: Test with pytest | |
shell: bash -l {0} | |
run: | | |
python -m pytest -v |