Skip to content

Commit

Permalink
feat(tests): add action to run tests on chaosnet (#222)
Browse files Browse the repository at this point in the history
* add action to run tests on chaosnet

* add pull request

* change uses label in github action

* add version

* add version v1

* use run chaosnet

* add version v1

* add loclanet-action

* add v1.1

* remove liquidator

* add more steps

* add concurrency

* move run chaosnet

* add other actions

* use local vars to connect chaosnet for tests

* test use localnet

* use websocket

* try lcd endpoint

* try http:// for tendermint rpc endpoint

* add validator mnemonic as the classic cream guard

* use chain id

* sleep 10 secnonds

* wait 30 seconds to set prices

* wait 40 seconds to set prices

* remove account number

* add 30 seconds sleep

* comment pytests

* add tests using chaosnet
  • Loading branch information
jgimeno authored Mar 15, 2023
1 parent 0f8b9a8 commit 2aba18a
Show file tree
Hide file tree
Showing 3 changed files with 321 additions and 311 deletions.
24 changes: 18 additions & 6 deletions .github/workflows/pytests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,13 @@ jobs:
runs-on: ubuntu-latest
env:
# https://www.notion.so/nibiru/Resources-and-Repo-Configs-b31aa8074a2b419d80b0c946ed5efab0
LCD_ENDPOINT: ${{ secrets.LCD_ENDPOINT }}
GRPC_ENDPOINT: ${{ secrets.GRPC_ENDPOINT }}
TENDERMINT_RPC_ENDPOINT: ${{ secrets.TENDERMINT_RPC_ENDPOINT }}
WEBSOCKET_ENDPOINT: ${{ secrets.WEBSOCKET_ENDPOINT }}
CHAIN_ID: ${{ secrets.CHAIN_ID }}
VALIDATOR_MNEMONIC: ${{ secrets.VALIDATOR_MNEMONIC }}
LCD_ENDPOINT: "http://localhost:1317"
GRPC_ENDPOINT: "localhost:9090"
TENDERMINT_RPC_ENDPOINT: "http://localhost:26657"
USE_LOCALNET: true
WEBSOCKET_ENDPOINT: "ws://localhost:26657/websocket"
CHAIN_ID: "nibiru-localnet-0"
VALIDATOR_MNEMONIC: "guard cream sadness conduct invite crumble clock pudding hole grit liar hotel maid produce squeeze return argue turtle know drive eight casino maze host"
DEVNET_NUMBER: ${{ secrets.DEVNET_NUMBER }}
steps:
# ----------------------------------------------
Expand Down Expand Up @@ -97,6 +98,17 @@ jobs:
- name: Install dependencies
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
run: poetry install --no-interaction --no-root

- name: Run chaosnet
uses: NibiruChain/[email protected]
id: chaosnet
with:
services: nibiru pricefeeder
ghtoken: ${{ secrets.GITHUB_TOKEN }}
ghactor: ${{ github.actor }}

- name: sleep 30 seconds
run: sleep 30
#----------------------------------------------
# run tests
#----------------------------------------------
Expand Down
Loading

0 comments on commit 2aba18a

Please sign in to comment.