-
Notifications
You must be signed in to change notification settings - Fork 1
58 lines (51 loc) · 1.57 KB
/
sigma-dao-tests.yaml
File metadata and controls
58 lines (51 loc) · 1.57 KB
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
53
54
55
56
57
name: Run SigmaDAO tests
on:
push:
branches:
- master
- develop
pull_request:
branches:
- master
- develop
jobs:
sigma-dao-test:
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Node
uses: actions/setup-node@v2-beta
with:
node-version: "16"
cache: "yarn"
- name: Install dependencies
run: yarn install
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: "3.10"
cache: "pipenv"
- name: Install poetry
run: pip install -U poetry
- name: Install pipenv
run: python -m pip install pipenv
- run: pipenv sync
- name: Install Algorand
run: |
sudo apt-get update && sudo apt-get install -y gnupg2 curl software-properties-common
curl -O https://releases.algorand.com/key.pub && sudo apt-key add key.pub
sudo add-apt-repository "deb [arch=amd64] https://releases.algorand.com/deb/ stable main"
sudo apt-get update && sudo apt-get install -y algorand
- name: Setup Network
run: cd infrastructure && make setup-private-net
- name: SigmaDAO scripts
working-directory: ./contracts
run: |
pipenv run yarn algob deploy
pipenv run yarn algob run scripts/run/add_proposal.js
pipenv run yarn algob run scripts/run/deposit_vote_token.js
- name: SigmaDAO tests
working-directory: ./contracts
run: |
pipenv run yarn test