Skip to content

Commit

Permalink
run tests on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
dunossauro committed Oct 14, 2023
1 parent 514a656 commit eb361ff
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,6 @@ jobs:

- name: Mypy check
run: poetry run mypy .

- name: Pytest
run: poetrun run pytest
3 changes: 3 additions & 0 deletions tests/test_audio.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
from itertools import chain

import pytest

from vmh.audio import _audio_chain, detect_silences, transcribe_audio

audio_stub = {
Expand Down Expand Up @@ -83,6 +85,7 @@ def test_detect_silences_negative():
assert silences == list(times)


@pytest.mark.skip(reason='Need cuda to run this on CI')
def test_transcribe_audio():
segments = transcribe_audio(audio_stub['path'], 'print', '')['segments']
for segment in segments:
Expand Down

0 comments on commit eb361ff

Please sign in to comment.