Skip to content

Commit

Permalink
Merge pull request #779 from ftnext/feature/pytest
Browse files Browse the repository at this point in the history
Adopt pytest
  • Loading branch information
ftnext authored Nov 2, 2024
2 parents 35cf8ac + 0cc79b1 commit fc2cfc3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/unittests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,11 @@ jobs:
- name: Install Python dependencies (Ubuntu)
if: matrix.os == 'ubuntu-latest'
run: |
python -m pip install .[audio,whisper-local,whisper-api]
python -m pip install .[dev,audio,whisper-local,whisper-api]
- name: Install Python dependencies (Windows)
if: matrix.os == 'windows-latest'
run: |
python -m pip install .[whisper-local,whisper-api]
python -m pip install .[dev,whisper-local,whisper-api]
- name: Test with unittest
run: |
python -m doctest speech_recognition/recognizers/google.py -v
python -m unittest discover --verbose
pytest --doctest-modules -v speech_recognition/recognizers/ tests/
2 changes: 2 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ universal=1
dev =
flake8
rstcheck
pytest
pytest-randomly
audio =
PyAudio >= 0.2.11
whisper-local =
Expand Down

0 comments on commit fc2cfc3

Please sign in to comment.