From a4a29aa76610ba9792b44a6d047fd78207c75d4f Mon Sep 17 00:00:00 2001 From: Robin Scheibler Date: Tue, 23 Apr 2024 09:45:48 +0900 Subject: [PATCH] switches to build package in action. fix rt60 test. --- .github/workflows/pythonpackage.yml | 6 +++--- pyroomacoustics/tests/test_rt60.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/pythonpackage.yml b/.github/workflows/pythonpackage.yml index 5b5add37..eebae48f 100644 --- a/.github/workflows/pythonpackage.yml +++ b/.github/workflows/pythonpackage.yml @@ -45,17 +45,17 @@ jobs: python -m pip install -e . - name: Test with pytest run: | - pip install -U pytest setuptools wheel twine + pip install -U pytest setuptools build wheel twine pytest - name: Test the universal wheels if: matrix.os == 'ubuntu-latest' run: | - python setup.py sdist + python -m build --sdist twine check dist/* - name: Test the binary wheels if: matrix.os != 'ubuntu-latest' run: | - python setup.py bdist_wheel + python -m build bdist_wheel twine check dist/* - name: Publish sdist to pypi if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/v') && matrix.os == 'ubuntu-latest' diff --git a/pyroomacoustics/tests/test_rt60.py b/pyroomacoustics/tests/test_rt60.py index 56d698fd..bb700ad4 100644 --- a/pyroomacoustics/tests/test_rt60.py +++ b/pyroomacoustics/tests/test_rt60.py @@ -2,7 +2,7 @@ import pyroomacoustics as pra -eps = 1e-10 +eps = 1e-6 room_dim = [10, 7.5, 3.5] # meters fs = 16000