-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (36 loc) · 1 KB
/
build.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
name: Build and Test
on:
pull_request: {}
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- name: Checkout
uses: actions/checkout@v2
with:
ref: ${{ github.event.pull_request.head.ref }}
repository: ${{ github.event.pull_request.head.repo.full_name }}
- name: Set Node to v16
uses: actions/setup-node@v2
with:
node-version: '16'
- name: Set up Python 3.7
uses: actions/setup-python@v4
with:
python-version: "3.7"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install smartpy
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Install SmartPy
run: |
yes | bash <(curl -s https://smartpy.io/cli/install.sh)
- name: Ensure Contracts Compile
run: npm run compile
- name: Unit Test
run: npm run test