Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
[run]
branch = true
source_pkgs = aligner
omit =
*tmp*
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
- uses: FedericoCarboni/setup-ffmpeg@37062fbf7149fc5578d6c57e08aed62458b375d6 # @v3.1, with tool cache

- name: Install dependencies and package
run: pip install -e . mypy coverage
run: pip install -e .[dev]

- name: Minimal code quality test, mypy should pass
run: mypy aligner
Expand All @@ -38,7 +38,7 @@ jobs:

- name: Run unit tests
run: |
coverage run -m unittest discover aligner.tests -v
coverage run -m pytest
coverage xml

- name: Upload coverage report to Codecov
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
*.egg-info
__pycache__
*.wav
*.TextGrid.coverage
*.coverage
6 changes: 1 addition & 5 deletions aligner/tests/test_cli.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
"""
Run wav2vec2aligner unit tests.
How to run this test suite:
If you installed wav2vec2aligner:
python -m unittest aligner.tests.test_cli
If you installed everyvoice:
python -m unittest everyvoice.model.aligner.wav2vec2aligner.aligner.tests.test_cli
How to run this test suite: pytest path/to/test_cli.py
"""

import io
Expand Down
2 changes: 2 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ dev = [
"isort>=5.10.1",
"mypy>=1.8.0",
"pre-commit>=3.2.0",
"pytest",
"coverage",
]

[project.urls]
Expand Down
Loading