Skip to content

Commit 99c7f87

Browse files
authored
Added github workflows ci jobs (#25)
1 parent 4b06a01 commit 99c7f87

File tree

3 files changed

+60
-2
lines changed

3 files changed

+60
-2
lines changed

.github/workflows/main.yaml

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- development
7+
pull_request:
8+
branches:
9+
- development
10+
11+
jobs:
12+
lint:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v1
16+
- name: Set up Python
17+
uses: actions/setup-python@v1
18+
with:
19+
python-version: 2.7
20+
- name: Install dependencies
21+
run: |
22+
python -m pip install --upgrade pip
23+
python -m pip install virtualenv
24+
make install
25+
- name: Run lint
26+
run: make lint
27+
28+
unit_test:
29+
runs-on: ubuntu-latest
30+
steps:
31+
- uses: actions/checkout@v1
32+
- name: Set up Python
33+
uses: actions/setup-python@v1
34+
with:
35+
python-version: 2.7
36+
- name: Install dependencies
37+
run: |
38+
python -m pip install --upgrade pip
39+
python -m pip install virtualenv
40+
make install
41+
- name: Run unit test
42+
run: make test-unit
43+
44+
integration_test:
45+
runs-on: ubuntu-latest
46+
steps:
47+
- uses: actions/checkout@v1
48+
- name: Set up Python
49+
uses: actions/setup-python@v1
50+
with:
51+
python-version: 2.7
52+
- name: Install dependencies
53+
run: |
54+
python -m pip install --upgrade pip
55+
python -m pip install virtualenv
56+
make install
57+
- name: Run integration test
58+
run: make test-integ

requirements/common.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ Twisted==19.7.0
44
pytz==2016.7
55
colorama==0.3.3
66
pygments==2.2.0
7-
ruamel.yaml==0.16.0
7+
ruamel.yaml==0.16.0

requirements/dev.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
mock==3.0.5
22
flake8==3.7.9
3-
nose==1.3.7
3+
nose==1.3.7

0 commit comments

Comments
 (0)