Skip to content

Commit 98da543

Browse files
author
Samuel Dare
committed
fix: check migrations for right environments
1 parent c7dc69b commit 98da543

File tree

4 files changed

+45
-42
lines changed

4 files changed

+45
-42
lines changed

.github/workflows/check-devnet.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,18 @@ jobs:
3737
echo "network spec_version: $spec_version"
3838
if (( $(echo "$local_spec_version <= $spec_version" | bc -l) )); then echo "$local_spec_version ≯ $spec_version ❌"; exit 1; fi
3939
echo "$local_spec_version > $spec_version ✅"
40+
41+
check-devnet-migrations:
42+
name: check devnet migrations
43+
runs-on: ubuntu-22.04
44+
steps:
45+
- name: Checkout sources
46+
uses: actions/checkout@v3
47+
48+
- name: Run Try Runtime Checks
49+
uses: "paritytech/[email protected]"
50+
with:
51+
runtime-package: "node-subtensor-runtime"
52+
node-uri: "wss://dev.chain.opentensor.ai:443"
53+
checks: "pre-and-post"
54+
extra-args: "--disable-spec-version-check --no-weight-warnings"

.github/workflows/check-finney.yml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Finney Deploy Check
22

33
on:
44
pull_request:
5-
branches: [finney]
5+
branches: [finney, main]
66

77
env:
88
CARGO_TERM_COLOR: always
@@ -37,3 +37,17 @@ jobs:
3737
echo "network spec_version: $spec_version"
3838
if (( $(echo "$local_spec_version <= $spec_version" | bc -l) )); then echo "$local_spec_version ≯ $spec_version ❌"; exit 1; fi
3939
echo "$local_spec_version > $spec_version ✅"
40+
41+
check-finney-migrations:
42+
name: check finney migrations
43+
runs-on: SubtensorCI
44+
steps:
45+
- name: Checkout sources
46+
uses: actions/checkout@v4
47+
- name: Run Try Runtime Checks
48+
uses: "paritytech/[email protected]"
49+
with:
50+
runtime-package: "node-subtensor-runtime"
51+
node-uri: "wss://entrypoint-finney.opentensor.ai:443"
52+
checks: "pre-and-post"
53+
extra-args: "--disable-spec-version-check --no-weight-warnings"

.github/workflows/check-rust.yml

Lines changed: 0 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -339,47 +339,6 @@ jobs:
339339
- name: Check features
340340
run: zepter run check
341341

342-
check-finney-migrations:
343-
name: check finney migrations
344-
runs-on: SubtensorCI
345-
steps:
346-
- name: Checkout sources
347-
uses: actions/checkout@v4
348342

349-
- name: Run Try Runtime Checks
350-
uses: "paritytech/[email protected]"
351-
with:
352-
runtime-package: "node-subtensor-runtime"
353-
node-uri: "wss://entrypoint-finney.opentensor.ai:443"
354-
checks: "pre-and-post"
355-
extra-args: "--disable-spec-version-check --no-weight-warnings"
356-
357-
check-devnet-migrations:
358-
name: check devnet migrations
359-
runs-on: ubuntu-22.04
360-
steps:
361-
- name: Checkout sources
362-
uses: actions/checkout@v3
363343

364-
- name: Run Try Runtime Checks
365-
uses: "paritytech/[email protected]"
366-
with:
367-
runtime-package: "node-subtensor-runtime"
368-
node-uri: "wss://dev.chain.opentensor.ai:443"
369-
checks: "pre-and-post"
370-
extra-args: "--disable-spec-version-check --no-weight-warnings"
371-
372-
check-testnet-migrations:
373-
name: check testnet migrations
374-
runs-on: ubuntu-22.04
375-
steps:
376-
- name: Checkout sources
377-
uses: actions/checkout@v3
378344

379-
- name: Run Try Runtime Checks
380-
uses: "paritytech/[email protected]"
381-
with:
382-
runtime-package: "node-subtensor-runtime"
383-
node-uri: "wss://test.chain.opentensor.ai:443"
384-
checks: "pre-and-post"
385-
extra-args: "--disable-spec-version-check --no-weight-warnings"

.github/workflows/check-testnet.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,18 @@ jobs:
3737
echo "network spec_version: $spec_version"
3838
if (( $(echo "$local_spec_version <= $spec_version" | bc -l) )); then echo "$local_spec_version ≯ $spec_version ❌"; exit 1; fi
3939
echo "$local_spec_version > $spec_version ✅"
40+
41+
check-testnet-migrations:
42+
name: check testnet migrations
43+
runs-on: ubuntu-22.04
44+
steps:
45+
- name: Checkout sources
46+
uses: actions/checkout@v3
47+
48+
- name: Run Try Runtime Checks
49+
uses: "paritytech/[email protected]"
50+
with:
51+
runtime-package: "node-subtensor-runtime"
52+
node-uri: "wss://test.chain.opentensor.ai:443"
53+
checks: "pre-and-post"
54+
extra-args: "--disable-spec-version-check --no-weight-warnings"

0 commit comments

Comments
 (0)