Skip to content

BUG: Add missing(?) include of cmath #312

BUG: Add missing(?) include of cmath

BUG: Add missing(?) include of cmath #312

Workflow file for this run

name: tests
on: [push, pull_request]
jobs:
test-ubuntu-latest:
strategy:
matrix:
python-version: ['3.11', '3.10', '3.9']
numpy-version: ['1.20.3', '1.21.6', '1.22.4', '1.23.5', '1.24.4', '1.25.2']
exclude:
- python-version: '3.10'
numpy-version: '1.20.3'
- python-version: '3.11'
numpy-version: '1.20.3'
- python-version: '3.11'
numpy-version: '1.21.6'
- python-version: '3.11'
numpy-version: '1.22.4'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip wheel
python -m pip install --upgrade setuptools
python -m pip install meson-python toml pytest
python -m pip install numpy==${{ matrix.numpy-version }}
- name: Install ufunclab
run: |
python -m pip install .
- name: Test with pytest
run: |
cd ../..
pwd
export LOCATION=`python -c "import ufunclab, os; print(os.path.dirname(ufunclab.__file__))"`
echo $LOCATION
python -m pytest $LOCATION
test-macos-12:
strategy:
matrix:
python-version: ['3.11', '3.10', '3.9']
numpy-version: ['1.20.3', '1.21.6', '1.22.4', '1.23.5', '1.24.4', '1.25.2']
exclude:
- python-version: '3.10'
numpy-version: '1.20.3'
- python-version: '3.11'
numpy-version: '1.20.3'
- python-version: '3.11'
numpy-version: '1.21.6'
- python-version: '3.11'
numpy-version: '1.22.4'
runs-on: macos-12
steps:
- uses: actions/checkout@v4
- name: Set up ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip wheel
python -m pip install --upgrade setuptools
python -m pip install meson-python toml pytest
python -m pip install numpy==${{ matrix.numpy-version }}
- name: Install ufunclab
run: |
python -m pip install .
- name: Test with pytest
run: |
cd ../..
pwd
export LOCATION=`python -c "import ufunclab, os; print(os.path.dirname(ufunclab.__file__))"`
echo $LOCATION
python -m pytest $LOCATION
test-main-numpy:
strategy:
matrix:
python-version: ['3.9', '3.10', '3.11']
os: [ubuntu-20.04, ubuntu-latest]
exclude:
- python-version: '3.11'
os: ubuntu-20.04
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
sudo apt-get install libopenblas-dev
python -m pip install --upgrade pip wheel
python -m pip install --upgrade setuptools==59.2.0
python -m pip install meson-python toml pytest
pushd .
cd ..
git clone --shallow-submodules --recurse-submodules https://github.com/numpy/numpy.git
cd numpy
python -m pip install .
popd
- name: Install ufunclab
run: |
python -m pip install .
- name: Test with pytest
run: |
cd ../..
pwd
export LOCATION=`python -c "import ufunclab, os; print(os.path.dirname(ufunclab.__file__))"`
echo $LOCATION
python -m pytest $LOCATION