Skip to content

Commit 0e6c661

Browse files
committed
seperate Run integration tests job
seperate run integration tests job to Run AzureOpenAIProxy.AppHost in background and Run integration tests Related to: aliencube#221
1 parent 58a8d3a commit 0e6c661

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

.github/workflows/azure-dev-build-only.yml

+5-2
Original file line numberDiff line numberDiff line change
@@ -71,14 +71,17 @@ jobs:
7171
dotnet test ./test/AzureOpenAIProxy.AppHost.Tests --no-build --logger "trx" --collect:"XPlat Code Coverage"
7272
dotnet test ./test/AzureOpenAIProxy.ApiApp.Tests --no-build --logger "trx" --collect:"XPlat Code Coverage"
7373
74-
- name: Run integration tests
74+
- name: Run AzureOpenAIProxy.AppHost in background
7575
shell: bash
7676
run: |
7777
dotnet run --project ./src/AzureOpenAIProxy.AppHost &
7878
7979
sleep 30
8080
81-
dotnet test ./test/AzureOpenAIProxy.PlaygroundApp.Tests --no-build --logger "trx" --collect:"XPlat Code Coverage"
81+
- name: Run integration tests
82+
shell: bash
83+
run: |
84+
dotnet test ./test/AzureOpenAIProxy.PlaygroundApp.Tests -c Release --no-build --logger "trx" --collect:"XPlat Code Coverage"
8285
8386
- name: Create openapi.json
8487
shell: pwsh

.github/workflows/azure-dev.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -85,13 +85,16 @@ jobs:
8585
dotnet test ./test/AzureOpenAIProxy.AppHost.Tests -c Release --no-build --logger "trx" --collect:"XPlat Code Coverage"
8686
dotnet test ./test/AzureOpenAIProxy.ApiApp.Tests -c Release --no-build --logger "trx" --collect:"XPlat Code Coverage"
8787
88-
- name: Run integration tests
88+
- name: Run AzureOpenAIProxy.AppHost in background
8989
shell: bash
9090
run: |
9191
dotnet run --project ./src/AzureOpenAIProxy.AppHost &
9292
9393
sleep 30
9494
95+
- name: Run integration tests
96+
shell: bash
97+
run: |
9598
dotnet test ./test/AzureOpenAIProxy.PlaygroundApp.Tests -c Release --no-build --logger "trx" --collect:"XPlat Code Coverage"
9699
97100
- name: Create openapi.json

0 commit comments

Comments
 (0)