-
Notifications
You must be signed in to change notification settings - Fork 26
52 lines (42 loc) · 1.27 KB
/
tests.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
45
46
47
48
49
50
51
52
name: Tests
on:
pull_request:
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- run: git fetch --force --tags
- name: Install go
uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'
- name: Install python
uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Install algod
run: |
CHANNEL="stable"
wget https://raw.githubusercontent.com/algorand/go-algorand/rel/stable/cmd/updater/update.sh && chmod 744 update.sh
./update.sh -i -c "$CHANNEL" -n -d ./ -p "$RUNNER_WORKSPACE/algod_bin"
ls "$RUNNER_WORKSPACE/algod_bin"
# Make it accessible from runner
echo "$RUNNER_WORKSPACE/algod_bin" >> $GITHUB_PATH
- name: Test for algod on path
run: which algod
- name: Build Conduit
run: make
- name: Run tests
run: make test
- name: Build e2e tests
run: pip3 install e2e_tests/
- name: Run e2e tests
run: |
make e2e-conduit
- name: Upload codecov report
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}