Skip to content

Commit 448ba63

Browse files
author
Roman
committed
temporary python-version ["3.12"] only + fix bugs
1 parent a9e4da2 commit 448ba63

File tree

4 files changed

+10
-6
lines changed

4 files changed

+10
-6
lines changed

.github/workflows/e2e-subtensor-tests.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,8 @@ jobs:
8080
os:
8181
- ubuntu-latest
8282
test-file: ${{ fromJson(needs.find-tests.outputs.test-files) }}
83-
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
83+
# python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
84+
python-version: ["3.12"]
8485
steps:
8586
- name: Check-out repository
8687
uses: actions/checkout@v4
@@ -144,7 +145,8 @@ jobs:
144145
os:
145146
- ubuntu-latest
146147
test-file: ${{ fromJson(needs.find-tests.outputs.test-files) }}
147-
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
148+
# python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
149+
python-version: ["3.12"]
148150

149151
steps:
150152
- name: Check-out repository

tests/e2e_tests/test_commitment.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,9 @@ async def test_commitment_async(
9696
"Subnet wasn't created successfully"
9797
)
9898

99-
assert async_wait_to_start_call(async_subtensor, dave_wallet, dave_subnet_netuid)
99+
assert await async_wait_to_start_call(
100+
async_subtensor, dave_wallet, dave_subnet_netuid
101+
)
100102

101103
async with async_subtensor as sub:
102104
with pytest.raises(SubstrateRequestException, match="AccountNotAllowedCommit"):

tests/e2e_tests/test_metagraph.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ def test_metagraph_info(subtensor, alice_wallet, bob_wallet):
210210
owner_hotkey="5C4hrfjw9DjXZTzV3MwzrrAr9P1MJhSrvWGWqi1eSuyUpnhM",
211211
owner_coldkey="5C4hrfjw9DjXZTzV3MwzrrAr9P1MJhSrvWGWqi1eSuyUpnhM",
212212
block=1,
213-
tempo=100 if subtensor.is_fast_blocks() else 100,
213+
tempo=100,
214214
last_step=0,
215215
blocks_since_last_step=1,
216216
subnet_emission=Balance(0),
@@ -303,7 +303,7 @@ def test_metagraph_info(subtensor, alice_wallet, bob_wallet):
303303
owner_hotkey="5C4hrfjw9DjXZTzV3MwzrrAr9P1MJhSrvWGWqi1eSuyUpnhM",
304304
owner_coldkey="5C4hrfjw9DjXZTzV3MwzrrAr9P1MJhSrvWGWqi1eSuyUpnhM",
305305
block=1,
306-
tempo=100 if subtensor.is_fast_blocks() else 100,
306+
tempo=100,
307307
last_step=0,
308308
blocks_since_last_step=1,
309309
subnet_emission=Balance(0),

tests/e2e_tests/test_root_set_weights.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ async def test_root_reg_hyperparams(
6262

6363
# Default immunity period & tempo set through the subtensor side
6464
default_immunity_period = 5000
65-
default_tempo = 10 if subtensor.is_fast_blocks() else 100
65+
default_tempo = 10 if subtensor.is_fast_blocks() else 360
6666

6767
# 0.2 for root network, 0.8 for sn 1
6868
# Corresponding to [0.2, 0.8]

0 commit comments

Comments
 (0)