Skip to content

Commit 320afde

Browse files
author
Roman
committed
improve
1 parent 07952fc commit 320afde

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ on:
2222
env:
2323
CARGO_TERM_COLOR: always
2424
VERBOSE: ${{ github.event.inputs.verbose }}
25+
PYTHON_VERSIONS: '["3.9", "3.10", "3.11", "3.12", "3.13"]'
2526

2627
# job to run tests in parallel
2728
jobs:
@@ -93,7 +94,7 @@ jobs:
9394
os:
9495
- ubuntu-latest
9596
test-file: ${{ fromJson(needs.find-tests.outputs.test-files) }}
96-
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
97+
python-version: ${{ fromJson(env.PYTHON_VERSIONS) }}
9798
steps:
9899
- name: Check-out repository
99100
uses: actions/checkout@v4

.github/workflows/nightly-e2e-tests-subtensor-main.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Nightly E2E Subtensor tests (main)
1+
name: Nightly E2E Subtensor tests
22

33
concurrency:
44
group: e2e-subtensor-${{ github.ref }}
@@ -18,6 +18,7 @@ on:
1818
env:
1919
CARGO_TERM_COLOR: always
2020
VERBOSE: ${{ github.event.inputs.verbose }}
21+
PYTHON_VERSIONS: '["3.9", "3.10", "3.11", "3.12", "3.13"]'
2122

2223
# job to run tests in parallel
2324
jobs:
@@ -37,8 +38,10 @@ jobs:
3738
test_files=$(find tests/e2e_tests -name "test*.py" | jq -R -s -c 'split("\n") | map(select(. != ""))')
3839
# keep it here for future debug
3940
# test_files=$(find tests/e2e_tests -type f -name "test*.py" | grep -E 'test_(hotkeys|staking)\.py$' | jq -R -s -c 'split("\n") | map(select(. != ""))')
41+
echo "Found test files: $test_files"
4042
echo "test-files=$test_files" >> "$GITHUB_OUTPUT"
4143
shell: bash
44+
4245
# Pull docker images (devnet-ready and main)
4346
pull-docker-images:
4447
runs-on: ubuntu-latest
@@ -103,7 +106,7 @@ jobs:
103106
os:
104107
- ubuntu-latest
105108
test-file: ${{ fromJson(needs.find-tests.outputs.test-files) }}
106-
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
109+
python-version: ${{ fromJson(env.PYTHON_VERSIONS) }}
107110
steps:
108111
- name: Check-out repository
109112
uses: actions/checkout@v4
@@ -168,7 +171,7 @@ jobs:
168171
os:
169172
- ubuntu-latest
170173
test-file: ${{ fromJson(needs.find-tests.outputs.test-files) }}
171-
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
174+
python-version: ${{ fromJson(env.PYTHON_VERSIONS) }}
172175
steps:
173176
- name: Check-out repository
174177
uses: actions/checkout@v4
@@ -236,7 +239,7 @@ jobs:
236239
os:
237240
- ubuntu-latest
238241
test-file: ${{ fromJson(needs.find-tests.outputs.test-files) }}
239-
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
242+
python-version: ${{ fromJson(env.PYTHON_VERSIONS) }}
240243

241244
steps:
242245
- name: Check-out repository
@@ -305,7 +308,7 @@ jobs:
305308
os:
306309
- ubuntu-latest
307310
test-file: ${{ fromJson(needs.find-tests.outputs.test-files) }}
308-
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
311+
python-version: ${{ fromJson(env.PYTHON_VERSIONS) }}
309312

310313
steps:
311314
- name: Check-out repository
@@ -355,4 +358,3 @@ jobs:
355358
sleep 5
356359
fi
357360
done
358-

0 commit comments

Comments
 (0)