-
Notifications
You must be signed in to change notification settings - Fork 12
44 lines (38 loc) · 1.15 KB
/
test-internal-chain.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: Test internal chain
on:
workflow_dispatch:
inputs:
network:
required: true
description: 'internal network name'
default: 'odin-internal'
type: choice
options:
- odin-internal
- heimdall-internal
offset:
required: true
description: 'Insert the snapshot tip index of the internal network (e.g. 1115268)'
limit:
required: true
description: 'Insert how many blocks from the mainnet to test (e.g. 100)'
jobs:
test-internal-chain:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- uses: actions/setup-python@v2.2.2
with:
python-version: 3.10.13
- run: |
python -m pip install -r requirements.txt
flit install
name: install dependencies
working-directory: ./scripts
- name: Test internal chain
run: |
python cli.py test-internal-chain ${{ github.event.inputs.network }} ${{ github.event.inputs.offset }} ${{ github.event.inputs.limit }}
working-directory: ./scripts
env:
GITHUB_TOKEN: ${{ secrets.P_GITHUB_TOKEN }}