Skip to content

Commit 1ed3dc1

Browse files
committed
fix integration and unit tests
1 parent 200ec51 commit 1ed3dc1

File tree

2 files changed

+15
-15
lines changed

2 files changed

+15
-15
lines changed

.github/workflows/check-btcli-tests.yml

+6-6
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ jobs:
215215
216216
- name: Create Python virtual environment
217217
working-directory: ${{ github.workspace }}
218-
run: python3 -m venv ${{ github.workspace }}/venv
218+
run: python3 -m venv venv
219219

220220
- name: Clone Bittensor CLI repo
221221
working-directory: ${{ github.workspace }}
@@ -240,11 +240,11 @@ jobs:
240240
git checkout ${{ github.event.pull_request.head.ref }}
241241
echo "Current branch: $(git rev-parse --abbrev-ref HEAD)"
242242
243-
# - name: Install async-substrate-interface package
244-
# run: |
245-
# source ${{ github.workspace }}/venv/bin/activate
246-
# python3 -m pip uninstall async-substrate-interface -y
247-
# python3 -m pip install .
243+
- name: Install /async-substrate-interface package
244+
run: |
245+
source ${{ github.workspace }}/venv/bin/activate
246+
pip uninstall async-substrate-interface -y
247+
pip install .
248248
249249
- name: Run SDK unit tests
250250
run: |

.github/workflows/check-sdk-tests.yml

+9-9
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ jobs:
215215
216216
- name: Create Python virtual environment
217217
working-directory: ${{ github.workspace }}
218-
run: python3 -m venv ${{ github.workspace }}/venv
218+
run: python3 -m venv venv
219219

220220
- name: Clone Bittensor SDK repo
221221
working-directory: ${{ github.workspace }}
@@ -231,8 +231,8 @@ jobs:
231231
python3 -m pip install '.[dev]'
232232
python3 -m pip install -r requirements/torch.txt
233233
234-
- name: Clone Bittensor Wallet repo
235-
run: git clone https://github.com/opentensor/btwallet.git
234+
- name: Clone async-substrate-interface repo
235+
run: git clone https://github.com/opentensor/async-substrate-interface.git
236236

237237
- name: Checkout PR branch in async-substrate-interface repo
238238
working-directory: ${{ github.workspace }}/async-substrate-interface
@@ -241,19 +241,19 @@ jobs:
241241
git checkout ${{ github.event.pull_request.head.ref }}
242242
echo "Current branch: $(git rev-parse --abbrev-ref HEAD)"
243243
244-
# - name: Install async-substrate-interface package
245-
# run: |
246-
# source ${{ github.workspace }}/venv/bin/activate
247-
# python3 -m pip uninstall async-substrate-interface -y
248-
# python3 -m pip install .
244+
- name: Install /async-substrate-interface package
245+
working-directory: ${{ github.workspace }}/async-substrate-interface
246+
run: |
247+
source ${{ github.workspace }}/venv/bin/activate
248+
pip uninstall async-substrate-interface -y
249+
pip install .
249250
250251
- name: Run SDK integration tests
251252
run: |
252253
source ${{ github.workspace }}/venv/bin/activate
253254
pytest ${{ github.workspace }}/bittensor/tests/integration_tests
254255
255256
- name: Run bittensor-sdk unit tests
256-
working-directory: ${{ github.workspace }}
257257
run: |
258258
source ${{ github.workspace }}/venv/bin/activate
259259
pytest ${{ github.workspace }}/bittensor/tests/unit_tests

0 commit comments

Comments
 (0)