diff --git a/.github/workflows/test_pip.yml b/.github/workflows/test_pip.yml new file mode 100644 index 0000000..721df6a --- /dev/null +++ b/.github/workflows/test_pip.yml @@ -0,0 +1,43 @@ +# This workflow will install Python dependencies, run tests and lint with a variety of Python versions +# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions + +name: build + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + build: + + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"] + + steps: + - uses: actions/checkout@v2 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python-version }} + - name: Install dependencies + run: | + curl -sSL https://install.python-poetry.org | python3 - + poetry install --all-extras + poetry --version + poetry show + python --version + pip --version + - name: Lint with flake8 + run: | + # stop the build if there are Python syntax errors or undefined names + poetry run flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics + # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide + poetry run flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics + - name: Test with pytest + run: | + poetry run python -m pytest --skip-numerical diff --git a/README.md b/README.md index 7d098a9..8f87166 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,5 @@ +[](https://github.com/groupmm/libtsm/actions/workflows/test_pip.yml) + # libtsm A Python toolbox for Time-Scale Modification (TSM) and Pitch-Shifting. @@ -32,7 +34,7 @@ IEEE Signal Processing Letters, 21(1): 105–109, 2014. ## Installation -With Python >= 3.6, you can install libtsm using the Python package manager pip: +You can install libtsm using the Python package manager pip: ``` pip install libtsm diff --git a/docs/Makefile b/docs/Makefile index d0c3cbf..59f4366 100644 --- a/docs/Makefile +++ b/docs/Makefile @@ -4,7 +4,7 @@ # You can set these variables from the command line, and also # from the environment for the first two. SPHINXOPTS ?= -SPHINXBUILD ?= sphinx-build +SPHINXBUILD ?= poetry run sphinx-build SOURCEDIR = source BUILDDIR = build diff --git a/docs/build/doctrees/environment.pickle b/docs/build/doctrees/environment.pickle index ba906a6..3d993e3 100644 Binary files a/docs/build/doctrees/environment.pickle and b/docs/build/doctrees/environment.pickle differ diff --git a/docs/build/doctrees/getting_started.doctree b/docs/build/doctrees/getting_started.doctree index 3b7d832..0fcd8bd 100644 Binary files a/docs/build/doctrees/getting_started.doctree and b/docs/build/doctrees/getting_started.doctree differ diff --git a/docs/build/doctrees/index.doctree b/docs/build/doctrees/index.doctree index 27da12e..a9ed646 100644 Binary files a/docs/build/doctrees/index.doctree and b/docs/build/doctrees/index.doctree differ diff --git a/docs/build/doctrees/index_pitchshift.doctree b/docs/build/doctrees/index_pitchshift.doctree index dc175ef..2f65561 100644 Binary files a/docs/build/doctrees/index_pitchshift.doctree and b/docs/build/doctrees/index_pitchshift.doctree differ diff --git a/docs/build/doctrees/index_tsm.doctree b/docs/build/doctrees/index_tsm.doctree index c2a3d7a..d721b2e 100644 Binary files a/docs/build/doctrees/index_tsm.doctree and b/docs/build/doctrees/index_tsm.doctree differ diff --git a/docs/build/doctrees/index_utils.doctree b/docs/build/doctrees/index_utils.doctree index ee117f9..4027512 100644 Binary files a/docs/build/doctrees/index_utils.doctree and b/docs/build/doctrees/index_utils.doctree differ diff --git a/docs/build/html/.buildinfo b/docs/build/html/.buildinfo index d984524..c40089f 100644 --- a/docs/build/html/.buildinfo +++ b/docs/build/html/.buildinfo @@ -1,4 +1,4 @@ # Sphinx build info version 1 -# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done. -config: 0250076a94f1b39aaff4df54a8bcd128 +# This file records the configuration used when building these files. When it is not found, a full rebuild will be done. +config: a375c7d903652087cc09c5217861df63 tags: 645f666f9bcd5a90fca523b33c5a78b7 diff --git a/docs/build/html/.buildinfo.bak b/docs/build/html/.buildinfo.bak new file mode 100644 index 0000000..d984524 --- /dev/null +++ b/docs/build/html/.buildinfo.bak @@ -0,0 +1,4 @@ +# Sphinx build info version 1 +# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done. +config: 0250076a94f1b39aaff4df54a8bcd128 +tags: 645f666f9bcd5a90fca523b33c5a78b7 diff --git a/docs/build/html/_modules/index.html b/docs/build/html/_modules/index.html index b91358d..ae485b1 100644 --- a/docs/build/html/_modules/index.html +++ b/docs/build/html/_modules/index.html @@ -1,168 +1,78 @@ - +
- - -