Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
54 changes: 50 additions & 4 deletions .github/workflows/check-bittensor-e2e-tests.yml.yml
Original file line number Diff line number Diff line change
Expand Up @@ -213,11 +213,34 @@ jobs:
- name: Load Docker Image
run: docker load -i subtensor-localnet.tar

- name: Run tests
# - name: Run tests
# working-directory: ${{ github.workspace }}/btcli
# run: |
# source ${{ github.workspace }}/venv/bin/activate
# uv run pytest ${{ matrix.test-file }} -s

- name: Run with retry
working-directory: ${{ github.workspace }}/btcli
run: |
source ${{ github.workspace }}/venv/bin/activate
uv run pytest ${{ matrix.test-file }} -s
set +e
for i in 1 2; do
echo "🔁 Attempt $i: Running tests"
uv run pytest ${{ matrix.test-file }} -s
status=$?
if [ $status -eq 0 ]; then
echo "✅ Tests passed on attempt $i"
break
else
echo "❌ Tests failed on attempt $i"
if [ $i -eq 2 ]; then
echo "🔥 Tests failed after 2 attempts"
exit 1
fi
echo "🕒 Retrying..."
sleep 5
fi
done

# main sdk job
run-sdk-e2e-tests:
Expand Down Expand Up @@ -285,8 +308,31 @@ jobs:
- name: Load Docker Image
run: docker load -i subtensor-localnet.tar

- name: Run tests
# - name: Run tests
# working-directory: ${{ github.workspace }}/bittensor
# run: |
# source ${{ github.workspace }}/venv/bin/activate
# uv run pytest ${{ matrix.test-file }} -s

- name: Run with retry
working-directory: ${{ github.workspace }}/bittensor
run: |
source ${{ github.workspace }}/venv/bin/activate
uv run pytest ${{ matrix.test-file }} -s
set +e
for i in 1 2; do
echo "🔁 Attempt $i: Running tests"
uv run pytest ${{ matrix.test-file }} -s
status=$?
if [ $status -eq 0 ]; then
echo "✅ Tests passed on attempt $i"
break
else
echo "❌ Tests failed on attempt $i"
if [ $i -eq 2 ]; then
echo "🔥 Tests failed after 2 attempts"
exit 1
fi
echo "🕒 Retrying..."
sleep 5
fi
done
Loading