Skip to content

Rerun flaky SDK/BTCLI testsΒ #130

Open
@thewhaleking

Description

@thewhaleking

Add to workflow:

      - name: Run tests with retry
        run: |
          set +e
          for i in 1 2 3; 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 3 ]; then
                echo "Tests failed after 3 attempts"
                exit 1
              fi
              echo "Retrying..."
              sleep 5
            fi
          done

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions