

ci: do not run tests which require OpenAI API key
@12ffdda9f0e07e8f13beae5ed616a1ab0873fa61
--- .github/workflows/test.yaml
+++ .github/workflows/test.yaml
... | ... | @@ -20,4 +20,4 @@ |
20 | 20 |
- run: uv python install 3.12 |
21 | 21 |
- run: uv sync --extra dev |
22 | 22 |
# TODO: figure out why `pytest` doesn't discover tests in `faster_whisper_server` directory by itself |
23 |
- - run: uv run pytest src/faster_whisper_server/* tests |
|
23 |
+ - run: uv run pytest -m "not requires_openai" src/faster_whisper_server/* tests |
--- tests/openai_timestamp_granularities_test.py
+++ tests/openai_timestamp_granularities_test.py
... | ... | @@ -6,6 +6,7 @@ |
6 | 6 |
|
7 | 7 |
|
8 | 8 |
@pytest.mark.asyncio() |
9 |
+@pytest.mark.requires_openai() |
|
9 | 10 |
@pytest.mark.parametrize("timestamp_granularities", TIMESTAMP_GRANULARITIES_COMBINATIONS) |
10 | 11 |
async def test_openai_json_response_format_and_timestamp_granularities_combinations( |
11 | 12 |
actual_openai_client: AsyncOpenAI, |
... | ... | @@ -28,6 +29,7 @@ |
28 | 29 |
|
29 | 30 |
|
30 | 31 |
@pytest.mark.asyncio() |
32 |
+@pytest.mark.requires_openai() |
|
31 | 33 |
@pytest.mark.parametrize("timestamp_granularities", TIMESTAMP_GRANULARITIES_COMBINATIONS) |
32 | 34 |
async def test_openai_verbose_json_response_format_and_timestamp_granularities_combinations( |
33 | 35 |
actual_openai_client: AsyncOpenAI, |
Add a comment
Delete comment
Once you delete this comment, you won't be able to recover it. Are you sure you want to delete this comment?