From 7012700e79f4b73eb1d5011deef9515645f48dd5 Mon Sep 17 00:00:00 2001 From: Duarte Folgado Date: Tue, 2 Jul 2024 14:30:25 +0100 Subject: [PATCH] Adding sleep to fix problem on Windows workflow. --- .github/workflows/tests.yml | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 74e1311..d4c7151 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -44,10 +44,14 @@ jobs: # python tests/test_calc_features.py - name: Test the data loaders run: | - retry_count=3 - while [ $retry_count -gt 0 ]; do - python tests/test_dataset_loaders.py && break - retry_count=$((retry_count - 1)) - sleep 5 - done + $retry_count = 3 + while ($retry_count -gt 0) { + python tests/test_dataset_loaders.py + if ($LASTEXITCODE -eq 0) { + break + } + $retry_count-- + Start-Sleep -Seconds 5 + } +