Skip to content

Commit

Permalink
Merge pull request #353 from jhj0517/fix/update-ci
Browse files Browse the repository at this point in the history
Skip test if DeepL API is unavailable
  • Loading branch information
jhj0517 authored Oct 25, 2024
2 parents 3163e03 + 811111b commit 213260d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/test_translation.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ def test_nllb_inference(
assert isinstance(file_paths[0], str)


@pytest.mark.skipif(
os.getenv("DEEPL_API_KEY") is None or not os.getenv("DEEPL_API_KEY"),
reason="DeepL API key is unavailable"
)
@pytest.mark.parametrize("file_path", [
TEST_SUBTITLE_SRT_PATH,
TEST_SUBTITLE_VTT_PATH,
Expand Down

0 comments on commit 213260d

Please sign in to comment.