-
Notifications
You must be signed in to change notification settings - Fork 3
44 lines (36 loc) · 1.21 KB
/
test.yml
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 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