Skip to content

Commit 1050b50

Browse files
committed
Fix app run
1 parent 1a3e00e commit 1050b50

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

.github/workflows/evaluate.yaml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,12 @@ jobs:
172172
--tenant-id "$Env:AZURE_TENANT_ID"
173173
shell: pwsh
174174

175+
- name: Refresh azd environment variables
176+
run: |
177+
azd env refresh -e $AZURE_ENV_NAME --no-prompt
178+
env:
179+
AZD_INITIAL_ENVIRONMENT_CONFIG: ${{ secrets.AZD_INITIAL_ENVIRONMENT_CONFIG }}
180+
175181
- name: Build frontend
176182
run: |
177183
cd ./app/frontend
@@ -184,19 +190,14 @@ jobs:
184190
185191
- name: Run local server in background
186192
run: |
193+
cd app/backend
187194
RUNNER_TRACKING_ID="" && (nohup python3 -m quart --app main:app run --port 50505 > serverlogs.out 2> serverlogs.err &)
195+
cd ../..
188196
189197
- name: Install evaluate dependencies
190198
run: |
191199
uv pip install -r evals/requirements.txt
192200
193-
- name: Run azd env get values command
194-
run: |
195-
azd env refresh -e $AZURE_ENV_NAME --no-prompt
196-
azd env get-values
197-
env:
198-
AZD_INITIAL_ENVIRONMENT_CONFIG: ${{ secrets.AZD_INITIAL_ENVIRONMENT_CONFIG }}
199-
200201
- name: Evaluate local RAG flow
201202
run: |
202203
python evals/evaluate.py --targeturl=http://127.0.0.1:50505/chat --resultsdir=evals/results/pr${{ github.event.issue.number }}

0 commit comments

Comments
 (0)