Skip to content
Merged
Show file tree
Hide file tree
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
47 changes: 23 additions & 24 deletions .github/workflows/check-btcli-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ jobs:
steps:
- name: Research preparation
working-directory: ${{ github.workspace }}
run: git clone https://github.com/opentensor/btcli.git
run: git clone https://github.com/latent-to/btcli.git

- name: Checkout
working-directory: ${{ github.workspace }}/btcli
Expand Down Expand Up @@ -161,7 +161,7 @@ jobs:
uses: astral-sh/setup-uv@v4

- name: Clone Bittensor CLI repo
run: git clone https://github.com/opentensor/btcli.git
run: git clone https://github.com/latent-to/btcli.git

- name: Checkout btcli staging branch
working-directory: ${{ github.workspace }}/btcli
Expand All @@ -174,14 +174,14 @@ jobs:
run: uv pip install --system '.[dev]'

- name: Clone async-substrate-interface repo
run: git clone https://github.com/opentensor/async-substrate-interface.git
run: git clone https://github.com/latent-to/async-substrate-interface.git

- name: Checkout PR branch in async-substrate-interface
working-directory: ${{ github.workspace }}/async-substrate-interface
run: |
git fetch origin ${{ github.event.pull_request.head.ref }}
git checkout ${{ github.event.pull_request.head.ref }}
echo "Current branch: $(git rev-parse --abbrev-ref HEAD)"
git fetch ${{ github.event.pull_request.head.repo.clone_url }} ${{ github.event.pull_request.head.ref }}
git checkout FETCH_HEAD
echo "Current SHA: $(git rev-parse HEAD)"

- name: Install async-substrate-interface with dev dependencies
working-directory: ${{ github.workspace }}/async-substrate-interface
Expand Down Expand Up @@ -223,8 +223,22 @@ jobs:
- name: Install uv
uses: astral-sh/setup-uv@v4

- name: Clone async-substrate-interface repo
run: git clone https://github.com/latent-to/async-substrate-interface.git

- name: Checkout PR branch in async-substrate-interface
working-directory: ${{ github.workspace }}/async-substrate-interface
run: |
git fetch ${{ github.event.pull_request.head.repo.clone_url }} ${{ github.event.pull_request.head.ref }}
git checkout FETCH_HEAD
echo "Current SHA: $(git rev-parse HEAD)"

- name: Install async-substrate-interface with dev dependencies
working-directory: ${{ github.workspace }}/async-substrate-interface
run: uv pip install --system '.[dev]'

- name: Clone Bittensor CLI repo
run: git clone https://github.com/opentensor/btcli.git
run: git clone https://github.com/latent-to/btcli.git

- name: Checkout btcli staging branch
working-directory: ${{ github.workspace }}/btcli
Expand All @@ -236,21 +250,6 @@ jobs:
working-directory: ${{ github.workspace }}/btcli
run: uv pip install --system '.[dev]'

- name: Clone async-substrate-interface repo
run: git clone https://github.com/opentensor/async-substrate-interface.git

- name: Checkout PR branch in async-substrate-interface
working-directory: ${{ github.workspace }}/async-substrate-interface
run: |
git fetch origin ${{ github.event.pull_request.head.ref }}
git checkout ${{ github.event.pull_request.head.ref }}
echo "Current branch: $(git rev-parse --abbrev-ref HEAD)"

- name: Install async-substrate-interface with dev dependencies
working-directory: ${{ github.workspace }}/async-substrate-interface
run: |
uv pip uninstall --system async-substrate-interface || true
uv pip install --system '.[dev]'

- name: Run BTCLI unit tests
run: pytest ${{ github.workspace }}/btcli/tests/unit_tests
working-directory: ${{ github.workspace }}/btcli
run: python -m pytest tests/unit_tests
29 changes: 15 additions & 14 deletions .github/workflows/check-sdk-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,13 +95,13 @@ jobs:
steps:
- name: Research preparation
working-directory: ${{ github.workspace }}
run: git clone https://github.com/opentensor/bittensor.git
run: git clone https://github.com/latent-to/bittensor.git

- name: Verify and checkout Bittensor branch
working-directory: ${{ github.workspace }}/bittensor
run: |
if ! git fetch origin $BITTENSOR_BRANCH; then
echo "❌ Error: Branch '$BITTENSOR_BRANCH' does not exist in opentensor/bittensor."
echo "❌ Error: Branch '$BITTENSOR_BRANCH' does not exist in latent-to/bittensor."
exit 1
fi
git checkout FETCH_HEAD
Expand Down Expand Up @@ -187,13 +187,13 @@ jobs:
uses: astral-sh/setup-uv@v4

- name: Clone Bittensor SDK repo
run: git clone https://github.com/opentensor/bittensor.git
run: git clone https://github.com/latent-to/bittensor.git

- name: Checkout Bittensor branch
working-directory: ${{ github.workspace }}/bittensor
run: |
if ! git fetch origin $BITTENSOR_BRANCH; then
echo "❌ Error: Branch '$BITTENSOR_BRANCH' does not exist in opentensor/bittensor."
echo "❌ Error: Branch '$BITTENSOR_BRANCH' does not exist in latent-to/bittensor."
exit 1
fi
git checkout FETCH_HEAD
Expand All @@ -204,15 +204,16 @@ jobs:
run: uv pip install --system '.[dev]'

- name: Clone async-substrate-interface repo
run: git clone https://github.com/opentensor/async-substrate-interface.git
run: git clone https://github.com/latent-to/async-substrate-interface.git

- name: Checkout PR branch in async-substrate-interface
working-directory: ${{ github.workspace }}/async-substrate-interface
run: |
BRANCH="${{ github.event.pull_request.head.ref || github.ref_name }}"
git fetch origin $BRANCH
git checkout $BRANCH
echo "Current branch: $(git rev-parse --abbrev-ref HEAD)"
REPO_URL="${{ github.event.pull_request.head.repo.clone_url || 'https://github.com/latent-to/async-substrate-interface.git' }}"
git fetch $REPO_URL $BRANCH
git checkout FETCH_HEAD
echo "Current SHA: $(git rev-parse HEAD)"

- name: Install async-substrate-interface with dev dependencies
working-directory: ${{ github.workspace }}/async-substrate-interface
Expand Down Expand Up @@ -255,13 +256,13 @@ jobs:
uses: astral-sh/setup-uv@v4

- name: Clone Bittensor SDK repo
run: git clone https://github.com/opentensor/bittensor.git
run: git clone https://github.com/latent-to/bittensor.git

- name: Checkout Bittensor branch
working-directory: ${{ github.workspace }}/bittensor
run: |
if ! git fetch origin $BITTENSOR_BRANCH; then
echo "❌ Error: Branch '$BITTENSOR_BRANCH' does not exist in opentensor/bittensor."
echo "❌ Error: Branch '$BITTENSOR_BRANCH' does not exist in latent-to/bittensor."
exit 1
fi
git checkout FETCH_HEAD
Expand All @@ -272,14 +273,14 @@ jobs:
run: uv pip install --system '.[dev]' torch

- name: Clone async-substrate-interface repo
run: git clone https://github.com/opentensor/async-substrate-interface.git
run: git clone https://github.com/latent-to/async-substrate-interface.git

- name: Checkout PR branch in async-substrate-interface
working-directory: ${{ github.workspace }}/async-substrate-interface
run: |
git fetch origin ${{ github.event.pull_request.head.ref }}
git checkout ${{ github.event.pull_request.head.ref }}
echo "Current branch: $(git rev-parse --abbrev-ref HEAD)"
git fetch ${{ github.event.pull_request.head.repo.clone_url }} ${{ github.event.pull_request.head.ref }}
git checkout FETCH_HEAD
echo "Current SHA: $(git rev-parse HEAD)"

- name: Install async-substrate-interface with dev dependencies
working-directory: ${{ github.workspace }}/async-substrate-interface
Expand Down
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ classifiers = [
[project.urls]
Repository = "https://github.com/opentensor/async-substrate-interface/"

[tool.setuptools.packages.find]
exclude = ["tests*"]

[tool.setuptools.package-data]
async_substrate_interface = ["py.typed"]

Expand Down
Loading