From 453606d5b757dd599e82bf022fe53fa5b74507e9 Mon Sep 17 00:00:00 2001 From: Jamie Hardt Date: Tue, 30 May 2023 16:04:25 -0700 Subject: [PATCH 1/4] Update __init__.py Nudged version --- wavinfo/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wavinfo/__init__.py b/wavinfo/__init__.py index 155b3e9..2a42dbb 100644 --- a/wavinfo/__init__.py +++ b/wavinfo/__init__.py @@ -5,5 +5,5 @@ Probe WAVE Files for iXML, Broadcast-WAVE and other metadata. from .wave_reader import WavInfoReader from .riff_parser import WavInfoEOFError -__version__ = '2.2.0' -__short_version__ = '2.2.0' +__version__ = '2.2.1' +__short_version__ = '2.2.1' From 3e3dd6d5bfed4a292946fee386d60ad62fe4eeb3 Mon Sep 17 00:00:00 2001 From: Jamie Hardt Date: Sun, 4 Jun 2023 21:14:23 -0700 Subject: [PATCH 2/4] Create coverage.yml --- .github/workflows/coverage.yml | 37 ++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .github/workflows/coverage.yml diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml new file mode 100644 index 0000000..94e6c84 --- /dev/null +++ b/.github/workflows/coverage.yml @@ -0,0 +1,37 @@ +name: Test Coverage + +on: + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + +jobs: + build: + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + python-version: ["3.8", "3.9", "3.10", "3.11"] + + steps: + - uses: actions/checkout@v2.5.0 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v4.3.0 + with: + python-version: ${{ matrix.python-version }} + - name: Install dependencies + run: | + python -m pip install --upgrade pip + python -m pip install flake8 pytest + python -m pip install -e . + - name: Generate coverage report + run: | + pip install pytest + pip install pytest-cov + pytest --cov=./ --cov-report=xml + - name: Codecov + # You may pin to the exact commit or the version. + # uses: codecov/codecov-action@eaaf4bedf32dbdc6b720b63067d99c4d77d6047d + uses: codecov/codecov-action@v3.1.4 + From e47a7dbb893c1419e2c0676b4e9826cf1d228e3a Mon Sep 17 00:00:00 2001 From: Jamie Hardt Date: Sun, 4 Jun 2023 21:16:38 -0700 Subject: [PATCH 3/4] Update coverage.yml Install ffmpeg for tests --- .github/workflows/coverage.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 94e6c84..e777353 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -25,6 +25,8 @@ jobs: python -m pip install --upgrade pip python -m pip install flake8 pytest python -m pip install -e . + - name: Setup FFmpeg + uses: FedericoCarboni/setup-ffmpeg@v2 - name: Generate coverage report run: | pip install pytest From 64b69f9341ff85b4f75937e0203f2dfde9d24b04 Mon Sep 17 00:00:00 2001 From: Jamie Hardt Date: Sun, 4 Jun 2023 21:28:37 -0700 Subject: [PATCH 4/4] Update README.md Adding codecov badge --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index a6fd22a..98ca450 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,6 @@ [![Documentation Status](https://readthedocs.org/projects/wavinfo/badge/?version=latest)](https://wavinfo.readthedocs.io/en/latest/?badge=latest) ![](https://img.shields.io/github/license/iluvcapra/wavinfo.svg) ![](https://img.shields.io/pypi/pyversions/wavinfo.svg) [![](https://img.shields.io/pypi/v/wavinfo.svg)](https://pypi.org/project/wavinfo/) ![](https://img.shields.io/pypi/wheel/wavinfo.svg) [![Lint and Test](https://github.com/iluvcapra/wavinfo/actions/workflows/python-package.yml/badge.svg)](https://github.com/iluvcapra/wavinfo/actions/workflows/python-package.yml) +[![codecov](https://codecov.io/gh/iluvcapra/wavinfo/branch/master/graph/badge.svg?token=9DZQfZENYv)](https://codecov.io/gh/iluvcapra/wavinfo) # wavinfo