-
Notifications
You must be signed in to change notification settings - Fork 62
37 lines (37 loc) · 1.29 KB
/
workflow.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
name: Python SDK GitHub Actions
on:
push:
pull_request:
paths-ignore:
- "docs/**"
- "Changelog.md"
- "README.md"
release:
types: [published, created, edited]
jobs:
build:
name: build
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-18.04, macos-latest]
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 5
- name: install macOS dependencies
if: runner.os == 'macOS'
run: brew install [email protected] curl
- name: install Ubuntu dependencies
if: runner.os == 'Linux'
run: sudo apt install -y git curl openssl
- name: install python
run: ./init_env.sh -p
- name: install solc
run: ./init_env.sh -i
- name: run integration for Linux
if: runner.os == 'Linux'
run: eval "$(cat ~/.bashrc | tail -n +10)" && echo ${PATH} && pyenv activate python-sdk && python --version && pip install --upgrade pip && pip install -r requirements.txt && bash -x ci/ci_check.sh
- name: run integration for macos
if: runner.os == 'macOS'
run: eval "$(cat ~/.bashrc | tail -n +10)" && echo ${PATH} && pyenv activate python-sdk && python --version && pip install --upgrade pip && pip install -r requirements.txt && bash -x ci/ci_check.sh