Skip to content

Commit 5a44906

Browse files
committed
ci: add GitHub actions for linting and testing
1 parent 1762d99 commit 5a44906

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/test.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: 'test'
2+
3+
on:
4+
push:
5+
6+
jobs:
7+
test:
8+
runs-on: ubuntu-latest
9+
strategy:
10+
matrix:
11+
python-version: [3.6, 3.7, 3.8, 3.9]
12+
steps:
13+
- uses: actions/checkout@v2
14+
- name: Set up Python ${{ matrix.python-version }}
15+
uses: actions/setup-python@v2
16+
with:
17+
python-version: ${{ matrix.python-version }}
18+
- name: Install dependencies
19+
run: |
20+
pip install pycodestyle
21+
pip install pylint
22+
pip install pytest
23+
pip install .
24+
- name: Lint
25+
run: |
26+
pycodestyle openflow
27+
pylint -s n openflow
28+
git diff --check --cached
29+
- name: Test
30+
run: pytest test

0 commit comments

Comments
 (0)