|
1 |
| -name: Nightly E2E Subtensor tests (main) |
| 1 | +name: Nightly E2E Subtensor tests |
2 | 2 |
|
3 | 3 | concurrency:
|
4 | 4 | group: e2e-subtensor-${{ github.ref }}
|
|
18 | 18 | env:
|
19 | 19 | CARGO_TERM_COLOR: always
|
20 | 20 | VERBOSE: ${{ github.event.inputs.verbose }}
|
| 21 | + PYTHON_VERSIONS: '["3.9", "3.10", "3.11", "3.12", "3.13"]' |
21 | 22 |
|
22 | 23 | # job to run tests in parallel
|
23 | 24 | jobs:
|
|
37 | 38 | test_files=$(find tests/e2e_tests -name "test*.py" | jq -R -s -c 'split("\n") | map(select(. != ""))')
|
38 | 39 | # keep it here for future debug
|
39 | 40 | # 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" |
40 | 42 | echo "test-files=$test_files" >> "$GITHUB_OUTPUT"
|
41 | 43 | shell: bash
|
| 44 | + |
42 | 45 | # Pull docker images (devnet-ready and main)
|
43 | 46 | pull-docker-images:
|
44 | 47 | runs-on: ubuntu-latest
|
@@ -103,7 +106,7 @@ jobs:
|
103 | 106 | os:
|
104 | 107 | - ubuntu-latest
|
105 | 108 | 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) }} |
107 | 110 | steps:
|
108 | 111 | - name: Check-out repository
|
109 | 112 | uses: actions/checkout@v4
|
@@ -168,7 +171,7 @@ jobs:
|
168 | 171 | os:
|
169 | 172 | - ubuntu-latest
|
170 | 173 | 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) }} |
172 | 175 | steps:
|
173 | 176 | - name: Check-out repository
|
174 | 177 | uses: actions/checkout@v4
|
@@ -236,7 +239,7 @@ jobs:
|
236 | 239 | os:
|
237 | 240 | - ubuntu-latest
|
238 | 241 | 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) }} |
240 | 243 |
|
241 | 244 | steps:
|
242 | 245 | - name: Check-out repository
|
@@ -305,7 +308,7 @@ jobs:
|
305 | 308 | os:
|
306 | 309 | - ubuntu-latest
|
307 | 310 | 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) }} |
309 | 312 |
|
310 | 313 | steps:
|
311 | 314 | - name: Check-out repository
|
@@ -355,4 +358,3 @@ jobs:
|
355 | 358 | sleep 5
|
356 | 359 | fi
|
357 | 360 | done
|
358 |
| -
|
|
0 commit comments