Skip to content

Commit

Permalink
remove markers for test and only run one test per cloudbuild
Browse files Browse the repository at this point in the history
  • Loading branch information
Yuan325 committed Dec 20, 2023
1 parent be31df2 commit d54c1a4
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 deletions.
2 changes: 1 addition & 1 deletion retrieval_service/datastore/providers/postgres_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
from .test_data import query_embedding1, query_embedding2, query_embedding3
from .utils import get_env_var

pytestmark = [pytest.mark.asyncio(scope="module"), pytest.mark.postgres]
pytestmark = pytest.mark.asyncio(scope="module")


@pytest.fixture(scope="module")
Expand Down
5 changes: 0 additions & 5 deletions retrieval_service/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,3 @@ warn_unused_configs = true
[[tool.mypy.overrides]]
module = ["pgvector.asyncpg"]
ignore_missing_imports = true

[tool.pytest.ini_options]
markers = [
"postgres",
]
2 changes: 1 addition & 1 deletion retrieval_service/sql-proxy/cloudsql.tests.cloudbuild.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ steps:
# Set env var expected by tests
export DB_USER=$$CLOUDSQLUSER
export DB_PASS=$$CLOUDSQLPASSWORD
python -m pytest -m "not postgres"
python -m pytest -m ../datastore/providers/cloudsql_postgres.py
- id: Run database export
name: python:3.11
Expand Down

0 comments on commit d54c1a4

Please sign in to comment.