diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 72eb7f23..aad1d8b1 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -20,4 +20,4 @@ jobs: - run: uv python install 3.12 - run: uv sync --extra dev # TODO: figure out why `pytest` doesn't discover tests in `faster_whisper_server` directory by itself - - run: uv run pytest -n auto src/faster_whisper_server/* tests + - run: uv run pytest -n auto -m "not requires_openai" src/faster_whisper_server/* tests diff --git a/tests/openai_timestamp_granularities_test.py b/tests/openai_timestamp_granularities_test.py index 65643365..e88129a5 100644 --- a/tests/openai_timestamp_granularities_test.py +++ b/tests/openai_timestamp_granularities_test.py @@ -6,6 +6,7 @@ @pytest.mark.asyncio() +@pytest.mark.requires_openai() @pytest.mark.parametrize("timestamp_granularities", TIMESTAMP_GRANULARITIES_COMBINATIONS) async def test_openai_json_response_format_and_timestamp_granularities_combinations( actual_openai_client: AsyncOpenAI, @@ -28,6 +29,7 @@ async def test_openai_json_response_format_and_timestamp_granularities_combinati @pytest.mark.asyncio() +@pytest.mark.requires_openai() @pytest.mark.parametrize("timestamp_granularities", TIMESTAMP_GRANULARITIES_COMBINATIONS) async def test_openai_verbose_json_response_format_and_timestamp_granularities_combinations( actual_openai_client: AsyncOpenAI,