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
5 changes: 4 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ jobs:
defaults:
run:
shell: bash -l {0}
permissions:
contents: read
pull-requests: write
steps:
- uses: actions/checkout@v4

Expand All @@ -20,7 +23,7 @@ jobs:
python-version: "3.8"
cache: "pip"

- uses: FedericoCarboni/setup-ffmpeg@v2
- uses: FedericoCarboni/setup-ffmpeg@583042d32dd1cabb8bd09df03bde06080da5c87c # v2

- name: Install dependencies and package
run: pip install -e . mypy coverage
Expand Down
10 changes: 8 additions & 2 deletions aligner/tests/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
from ..classes import Segment
from ..cli import app

VERBOSE_OVERRIDE = bool(os.environ.get("EVERYVOICE_VERBOSE_TESTS", False))


class CLITest(TestCase):
def setUp(self) -> None:
Expand Down Expand Up @@ -83,8 +85,12 @@ def test_align_something(self):
wav = tmppath / "ej-fra.wav"
# Under most circumstances, align can take a .m4a input file, but not
# in CI. It's not a hard requirement, so just convert to .wav.
subprocess.run(["ffmpeg", "-i", m4a, wav], capture_output=True)
# os.system("ls -la " + tmpdir)
result = subprocess.run(["ffmpeg", "-i", m4a, wav], capture_output=True)
if result.returncode != 0 or VERBOSE_OVERRIDE:
print("ffmpeg output:", result.stdout, result.stderr)
print("ffmpeg exit code:", result.returncode)
print(tmpdir)
os.system("ls -la " + tmpdir)
textgrid = tmppath / "ej-fra-16000.TextGrid"
wav_out = tmppath / "ej-fra-16000.wav"

Expand Down
Loading