diff --git a/.coveragerc b/.coveragerc index 878a566..f161d58 100644 --- a/.coveragerc +++ b/.coveragerc @@ -7,4 +7,4 @@ omit = directory = coverage/html [report] -fail_under = 68 +fail_under = 76 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index bb78a46..71e638e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -72,6 +72,12 @@ jobs: sudo apt install -y libpulse-mainloop-glib0 libegl1-mesa-dev libgstreamer-plugins-base1.0-dev libgstreamer1.0-dev libportaudio2 fi + if [ "$RUNNER_OS" == "Windows" ]; then + curl -OL "https://github.com/ggerganov/whisper.cpp/releases/download/v1.3.0/whisper-bin-x64.zip" + unzip whisper-bin-x64.zip + mv main.exe whisper_cpp.exe + fi + poetry run make test shell: bash @@ -146,7 +152,11 @@ jobs: poetry run make bundle_mac elif [ "$RUNNER_OS" == "Windows" ]; then - + + curl -OL "https://github.com/ggerganov/whisper.cpp/releases/download/v1.3.0/whisper-bin-x64.zip" + unzip whisper-bin-x64.zip + mv main.exe whisper_cpp.exe + poetry run make bundle_windows elif [ "$RUNNER_OS" == "Linux" ]; then diff --git a/tests/transcriber_test.py b/tests/transcriber_test.py index d51e4ae..1e7f3f2 100644 --- a/tests/transcriber_test.py +++ b/tests/transcriber_test.py @@ -52,7 +52,6 @@ class TestRecordingTranscriber: assert 'Bienvenue dans Passe' in text -@pytest.mark.skipif(platform.system() == 'Windows', reason='whisper_cpp not printing segments on Windows') class TestWhisperCppFileTranscriber: @pytest.mark.parametrize( 'word_level_timings,expected_segments',