File tree Expand file tree Collapse file tree 2 files changed +23
-26
lines changed Expand file tree Collapse file tree 2 files changed +23
-26
lines changed Original file line number Diff line number Diff line change 8080 - name : Install azd
8181 uses : Azure/setup-azd@v1.0.0
8282
83+ - name : Login to Azure
84+ uses : azure/login@v2
85+ with :
86+ client-id : ${{ env.AZURE_CLIENT_ID }}
87+ tenant-id : ${{ env.AZURE_TENANT_ID }}
88+ subscription-id : ${{ env.AZURE_SUBSCRIPTION_ID }}
89+
90+ - name : Set az account
91+ uses : azure/CLI@v2
92+ with :
93+ inlineScript : |
94+ az account set --subscription ${{env.AZURE_SUBSCRIPTION_ID}}
95+
96+ - name : Log in with Azure (Federated Credentials)
97+ if : ${{ env.AZURE_CLIENT_ID != '' }}
98+ run : |
99+ azd auth login `
100+ --client-id "$Env:AZURE_CLIENT_ID" `
101+ --federated-credential-provider "github" `
102+ --tenant-id "$Env:AZURE_TENANT_ID"
103+ shell : pwsh
104+
83105 - name : Install dependencies
84106 run : |
85107 uv pip install -r requirements-dev.txt
@@ -104,28 +126,6 @@ jobs:
104126 npm install
105127 npm run build
106128
107- - name : Login to Azure
108- uses : azure/login@v2
109- with :
110- client-id : ${{ env.AZURE_CLIENT_ID }}
111- tenant-id : ${{ env.AZURE_TENANT_ID }}
112- subscription-id : ${{ env.AZURE_SUBSCRIPTION_ID }}
113-
114- - name : Set az account
115- uses : azure/CLI@v2
116- with :
117- inlineScript : |
118- az account set --subscription ${{env.AZURE_SUBSCRIPTION_ID}}
119-
120- - name : Log in with Azure (Federated Credentials)
121- if : ${{ env.AZURE_CLIENT_ID != '' }}
122- run : |
123- azd auth login `
124- --client-id "$Env:AZURE_CLIENT_ID" `
125- --federated-credential-provider "github" `
126- --tenant-id "$Env:AZURE_TENANT_ID"
127- shell : pwsh
128-
129129 - name : Run local server in background
130130 run : |
131131 RUNNER_TRACKING_ID="" && (nohup python3 -m uvicorn fastapi_app:create_app --factory > serverlogs.out 2> serverlogs.err &)
Original file line number Diff line number Diff line change @@ -32,10 +32,7 @@ def get_password_from_azure_credential():
3232 if sslmode :
3333 DATABASE_URI += f"?ssl={ sslmode } "
3434
35- engine = create_async_engine (
36- DATABASE_URI ,
37- echo = True ,
38- )
35+ engine = create_async_engine (DATABASE_URI , echo = False )
3936
4037 @event .listens_for (engine .sync_engine , "connect" )
4138 def register_custom_types (dbapi_connection : AdaptedConnection , * args ):
You can’t perform that action at this time.
0 commit comments