forked from blockcypher/blockcypher-python
-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (37 loc) · 1.04 KB
/
test.yml
File metadata and controls
39 lines (37 loc) · 1.04 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
name: Continuous Integration
# Trigger the workflow on push or pull request on the repo (BC_API_KEY cannot be accessible to forked repo)
on: [push]
jobs:
python2:
runs-on: ubuntu-latest
name: Python 2.x Tests
steps:
- uses: actions/checkout@v1
- name: Setup python
uses: actions/setup-python@v1
with:
python-version: 2.x
architecture: x64
- name: Install dependencies
run: python setup.py develop
- name: Run test
run: python test_blockcypher.py
env:
BC_API_KEY: ${{ secrets.BC_API_KEY }}
python3:
needs: python2
runs-on: ubuntu-latest
name: Python 3.x Tests
steps:
- uses: actions/checkout@v1
- name: Setup python
uses: actions/setup-python@v1
with:
python-version: 3.x
architecture: x64
- name: Install dependencies
run: python setup.py develop
- name: Run test
run: python test_blockcypher.py
env:
BC_API_KEY: ${{ secrets.BC_API_KEY }}