File tree Expand file tree Collapse file tree 1 file changed +9
-11
lines changed Expand file tree Collapse file tree 1 file changed +9
-11
lines changed Original file line number Diff line number Diff line change @@ -152,23 +152,21 @@ jobs:
152
152
env :
153
153
LOCALNET_IMAGE_NAME : ${{ needs.pull-docker-image.outputs.image-name }}
154
154
run : |
155
- set +e
156
155
for i in 1 2 3; do
157
156
echo "::group::🔁 Test attempt $i"
158
- uv run pytest ${{ matrix.test-file }} -s
159
- echo "::endgroup::"
160
- status=$?
161
- if [ $status -eq 0 ]; then
157
+ if uv run pytest ${{ matrix.test-file }} -s; then
162
158
echo "✅ Tests passed on attempt $i"
163
- break
159
+ echo "::endgroup::"
160
+ exit 0
164
161
else
165
162
echo "❌ Tests failed on attempt $i"
166
- if [ $i -eq 3 ]; then
167
- echo "Tests failed after 3 attempts"
168
- exit 1
163
+ echo "::endgroup::"
164
+ if [ "$i" -lt 3 ]; then
165
+ echo "Retrying..."
166
+ sleep 5
169
167
fi
170
- echo "Retrying..."
171
- sleep 5
172
168
fi
173
169
done
174
170
171
+ echo "Tests failed after 3 attempts"
172
+ exit 1
You can’t perform that action at this time.
0 commit comments