We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5888ce0 commit 277f998Copy full SHA for 277f998
.github/workflows/e2e-subtensor-tests.yaml
@@ -101,5 +101,26 @@ jobs:
101
- name: Load Docker Image
102
run: docker load -i subtensor-localnet.tar
103
104
- - name: Run tests
105
- run: uv run pytest ${{ matrix.test-file }} -s
+# - name: Run tests
+# run: uv run pytest ${{ matrix.test-file }} -s
106
+
107
+ - name: Run tests with retry
108
+ run: |
109
+ set +e
110
+ for i in 1 2; do
111
+ echo "🔁 Attempt $i: Running tests"
112
+ uv run pytest ${{ matrix.test-file }} -s
113
+ status=$?
114
+ if [ $status -eq 0 ]; then
115
+ echo "✅ Tests passed on attempt $i"
116
+ break
117
+ else
118
+ echo "❌ Tests failed on attempt $i"
119
+ if [ $i -eq 2 ]; then
120
+ echo "Tests failed after 2 attempts"
121
+ exit 1
122
+ fi
123
+ echo "Retrying..."
124
+ sleep 5
125
126
+ done
0 commit comments