diff --git a/.github/workflows/check-btcli-tests.yml b/.github/workflows/check-btcli-tests.yml index f49102f2..2bd389ed 100644 --- a/.github/workflows/check-btcli-tests.yml +++ b/.github/workflows/check-btcli-tests.yml @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 \ No newline at end of file + working-directory: ${{ github.workspace }}/btcli + run: python -m pytest tests/unit_tests \ No newline at end of file diff --git a/.github/workflows/check-sdk-tests.yml b/.github/workflows/check-sdk-tests.yml index 6422ce7c..92f1589e 100644 --- a/.github/workflows/check-sdk-tests.yml +++ b/.github/workflows/check-sdk-tests.yml @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 diff --git a/pyproject.toml b/pyproject.toml index cf30f07a..8b38651b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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"]