Skip to content

Commit

Permalink
updating tests for newer scipy
Browse files Browse the repository at this point in the history
  • Loading branch information
bmcfee committed Mar 5, 2024
1 parent cc6eed5 commit 1785107
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci-minimal.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
shell: bash -l {0}
run: |
mamba install typing_extensions!=4.2 pytest
mamba install pip numpy==1.17 scipy==1.0 numba==0.53 importlib_resources
mamba install pip numpy==1.17 scipy==1.0 numba==0.53
- name: Install
shell: bash -l {0}
Expand Down
11 changes: 6 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest]
python-version: ["3.6", "3.7", "3.8", "3.9", "3.10"]
python-version: ["3.6", "3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]
include:
- os: windows-latest
python-version: "3.10"
python-version: "3.12"
- os: macos-latest
python-version: "3.10"
python-version: "3.12"

steps:
- uses: actions/checkout@v2
Expand All @@ -39,7 +39,7 @@ jobs:
shell: bash -l {0}
run: |
mamba install typing_extensions!=4.2
mamba install pip numpy scipy numba pytest pytest-cov pytest-doctestplus importlib_resources
mamba install pip numpy scipy numba pytest pytest-cov pytest-doctestplus
- name: Install
shell: bash -l {0}
run: |
Expand All @@ -50,8 +50,9 @@ jobs:
python -m pytest tests
python -m pytest --doctest-only resampy
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage.xml
directory: ./coverage/reports/
flags: unittests
Expand Down
7 changes: 5 additions & 2 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ classifiers =
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
Programming Language :: Python :: 3.10
Programming Language :: Python :: 3.11
Programming Language :: Python :: 3.12


[options]
packages = find:
Expand All @@ -40,7 +43,7 @@ python_requires >= 3.6
install_requires =
numpy>=1.17
numba>=0.53
importlib_resources
importlib_resources; python_verssion < "3.9"

[options.package_data]
resampy = data/*
Expand All @@ -53,7 +56,7 @@ docs =
tests =
pytest < 8
pytest-cov
scipy>=1.0
scipy>=1.11

design =
optuna >= 2.10.0
2 changes: 1 addition & 1 deletion tests/test_filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@


@pytest.mark.parametrize('filt', ['sinc_window', resampy.filters.sinc_window])
@pytest.mark.parametrize('window', [None, scipy.signal.hann])
@pytest.mark.parametrize('window', [None, scipy.signal.windows.hann])
@pytest.mark.parametrize('num_zeros', [None, 13])
@pytest.mark.parametrize('precision', [None, 9])
@pytest.mark.parametrize('rolloff', [None, 0.925])
Expand Down

0 comments on commit 1785107

Please sign in to comment.