Spaces:
Running
on
T4
Running
on
T4
Fedir Zadniprovskyi
commited on
Commit
•
80f0932
1
Parent(s):
ed63b7d
ci: do not run tests which require OpenAI API key
Browse files
.github/workflows/test.yaml
CHANGED
@@ -20,4 +20,4 @@ jobs:
|
|
20 |
- run: uv python install 3.12
|
21 |
- run: uv sync --extra dev
|
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
|
|
|
20 |
- run: uv python install 3.12
|
21 |
- run: uv sync --extra dev
|
22 |
# TODO: figure out why `pytest` doesn't discover tests in `faster_whisper_server` directory by itself
|
23 |
+
- run: uv run pytest -m "not requires_openai" src/faster_whisper_server/* tests
|
tests/openai_timestamp_granularities_test.py
CHANGED
@@ -6,6 +6,7 @@ import pytest
|
|
6 |
|
7 |
|
8 |
@pytest.mark.asyncio()
|
|
|
9 |
@pytest.mark.parametrize("timestamp_granularities", TIMESTAMP_GRANULARITIES_COMBINATIONS)
|
10 |
async def test_openai_json_response_format_and_timestamp_granularities_combinations(
|
11 |
actual_openai_client: AsyncOpenAI,
|
@@ -28,6 +29,7 @@ async def test_openai_json_response_format_and_timestamp_granularities_combinati
|
|
28 |
|
29 |
|
30 |
@pytest.mark.asyncio()
|
|
|
31 |
@pytest.mark.parametrize("timestamp_granularities", TIMESTAMP_GRANULARITIES_COMBINATIONS)
|
32 |
async def test_openai_verbose_json_response_format_and_timestamp_granularities_combinations(
|
33 |
actual_openai_client: AsyncOpenAI,
|
|
|
6 |
|
7 |
|
8 |
@pytest.mark.asyncio()
|
9 |
+
@pytest.mark.requires_openai()
|
10 |
@pytest.mark.parametrize("timestamp_granularities", TIMESTAMP_GRANULARITIES_COMBINATIONS)
|
11 |
async def test_openai_json_response_format_and_timestamp_granularities_combinations(
|
12 |
actual_openai_client: AsyncOpenAI,
|
|
|
29 |
|
30 |
|
31 |
@pytest.mark.asyncio()
|
32 |
+
@pytest.mark.requires_openai()
|
33 |
@pytest.mark.parametrize("timestamp_granularities", TIMESTAMP_GRANULARITIES_COMBINATIONS)
|
34 |
async def test_openai_verbose_json_response_format_and_timestamp_granularities_combinations(
|
35 |
actual_openai_client: AsyncOpenAI,
|