Skip to content
This repository was archived by the owner on May 27, 2025. It is now read-only.

Commit ff6426e

Browse files
committed
update work directory
1 parent 443e496 commit ff6426e

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

.github/workflows/integration.yaml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,21 +35,24 @@ jobs:
3535
mkdir azurite
3636
azurite --silent --location azurite --debug azurite\debug.log &
3737
38+
# For more information on installation/setup of Azure Cosmos DB Emulator
39+
# https://learn.microsoft.com/en-us/azure/cosmos-db/how-to-develop-emulator?tabs=docker-linux%2Cpython&pivots=api-nosql
40+
# Note: the emulator is only available on Windows runners. It can take longer than the default to initially startup so we increase the default timeout.
41+
# If a job fails due to timeout, restarting the cicd job usually resolves the problem.
3842
- name: Install Azure Cosmos DB emulator
3943
run: |
4044
Write-Host "Launching Cosmos DB Emulator"
4145
Import-Module "$env:ProgramFiles\Azure Cosmos DB Emulator\PSModules\Microsoft.Azure.CosmosDB.Emulator"
42-
Start-CosmosDbEmulator
46+
Start-CosmosDbEmulator -Timeout 500
4347
4448
- name: Install dependencies
45-
working-directory: ${{ github.workspace }}/backend
4649
run: |
4750
pip install poetry
4851
poetry config virtualenvs.create false
4952
poetry install --with test
5053
5154
- name: Run integration tests
52-
working-directory: ${{ github.workspace }}/backend
5355
run: |
56+
echo ${{ github.workspace }}/backend
57+
cd backend
5458
pytest --cov=src -s src/tests
55-

0 commit comments

Comments
 (0)