Merge pull request #22 from timewave-computer/feature-localinterchain… #482
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test Auction Arbitrage Bot | |
on: [push] | |
env: | |
GO_VERSION: 1.21 | |
jobs: | |
test: | |
name: python test | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install nix | |
uses: cachix/install-nix-action@v27 | |
- uses: DeterminateSystems/magic-nix-cache-action@main | |
- name: Lint | |
run: nix develop --command make lint | |
- name: Run tests | |
run: nix develop --command make test | |
int-test: | |
name: integration test | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set up Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: ${{ env.GO_VERSION }} | |
- name: Install nix | |
uses: cachix/install-nix-action@v27 | |
- uses: DeterminateSystems/magic-nix-cache-action@main | |
- name: Get cargo | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
- name: Run local-interchaintest | |
run: cd local-interchaintest && nix run ../#local-ic start neutron_osmosis_gaia -- --api-port 42069 & curl --head -X GET --retry 1000 --retry-connrefused --retry-delay 1 http://localhost:42069 && cd local-interchaintest && nix develop --command cargo run |