setup poetry env vars for github ci

This commit is contained in:
Jakub Miazek
2022-11-13 16:55:59 +01:00
parent d9811d6588
commit 62e1121f4e
2 changed files with 12 additions and 11 deletions

View File

@@ -27,10 +27,10 @@ class Settings(BaseSettings):
"""
pg_user: str = os.getenv("SQL_USER", "app-user")
pg_pass: str = os.getenv("POSTGRES_PASSWORD", "secret")
pg_user: str = os.getenv("SQL_USER", "")
pg_pass: str = os.getenv("POSTGRES_PASSWORD", "")
pg_host: str = os.getenv("SQL_HOST", "")
pg_database: str = os.getenv("SQL_DB", "testdb")
pg_database: str = os.getenv("SQL_DB", "")
asyncpg_url: str = f"postgresql+asyncpg://{pg_user}:{pg_pass}@{pg_host}:5432/{pg_database}"
jwt_secret_key: str = os.getenv("SECRET_KEY", "")