Skip to content

Commit

Permalink
catering for manual run of script as well as pipeline run
Browse files Browse the repository at this point in the history
  • Loading branch information
nadineloepfe committed Nov 26, 2024
1 parent 9e003e7 commit 9c4d6db
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,14 @@ jobs:
with:
python-version: '3.9'

- name: Install package with dependencies
run: pip install -e .
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Install your package
run: pip install -e .

- name: Prepare Hedera Solo
id: solo
uses: OpenElements/[email protected]
Expand All @@ -36,4 +41,5 @@ jobs:
OPERATOR_KEY: ${{ steps.solo.outputs.privateKey }}
PUBLIC_KEY: ${{ steps.solo.outputs.publicKey }}
NETWORK: 'solo'
run: python test.py
run: python test.py

2 changes: 1 addition & 1 deletion test.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ def transfer_token(client, recipient_id, token_id):
def main():
operator_id, operator_key = load_operator_credentials()

network_type = os.getenv('NETWORK', 'testnet')
network_type = os.getenv('NETWORK')
if network_type == 'solo':
network = Network(node_address='localhost:50211', node_account_id=AccountId(0, 0, 3))
else:
Expand Down

0 comments on commit 9c4d6db

Please sign in to comment.