Skip to content

Bump dependencies for NumPy 2 compatibility #26

Bump dependencies for NumPy 2 compatibility

Bump dependencies for NumPy 2 compatibility #26

Workflow file for this run

name: Test
on:
push:
branches:
- main
pull_request:
branches:
- main
env:
UV_SYSTEM_PYTHON: 1
NPY_PROMOTION_STATE: weak_and_warn
jobs:
test:
name: Python ${{ matrix.python-version }} on ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [windows-latest, ubuntu-latest, macos-latest]
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
include:
- os: ubuntu-latest
python-version: "3.9"
numpy: "numpy==1.26.4"
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: astral-sh/setup-uv@v3
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install libsndfile
if: startsWith(matrix.os, 'ubuntu')
run: |
sudo apt-get install -y libsndfile1
- name: Install dependencies
run: |
uv pip install ".[dev]"
- if: ${{ matrix.numpy }}
run: uv pip install ${{ matrix.numpy }}
- name: Run tests
run: pytest
- name: Check style
run: black --check --diff .
test-deb10-i386:
name: Python 3.7 on Debian 10 i386
runs-on: ubuntu-latest
container: i386/debian:10
steps:
- name: Install dependencies
run: |
apt-get update
apt-get install -y --no-install-recommends \
python3-matplotlib \
python3-numpy \
python3-pandas \
python3-requests \
python3-scipy \
python3-soundfile \
python3-pytest \
git
python3 --version
# Note: "actions/checkout@v2" requires libstdc++6:amd64 to be
# installed in the container. To keep things simple, use
# "actions/checkout@v1" instead.
# https://github.com/actions/checkout/issues/334
- uses: actions/checkout@v1
- name: Run tests
run: pytest-3