Skip to content

Commit

Permalink
ci: do not run tests which require OpenAI API key
Browse files Browse the repository at this point in the history
  • Loading branch information
Fedir Zadniprovskyi authored and fedirz committed Sep 21, 2024
1 parent 98d6f0d commit 748b9ef
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 src/faster_whisper_server/* tests
- run: uv run pytest -m "not requires_openai" src/faster_whisper_server/* tests
2 changes: 2 additions & 0 deletions tests/openai_timestamp_granularities_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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,
Expand Down

0 comments on commit 748b9ef

Please sign in to comment.