Skip to content

Commit fb8aa8c

Browse files
author
Zach Moody
authored
GitHub actions (#246)
Use github actions for PRs
1 parent 9a01988 commit fb8aa8c

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/pr.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: PR Test
2+
3+
on: [pull_request]
4+
5+
jobs:
6+
build:
7+
8+
runs-on: ubuntu-latest
9+
strategy:
10+
matrix:
11+
python: [2.7, 3.6]
12+
13+
steps:
14+
- uses: actions/checkout@v2
15+
16+
- name: Setup Python
17+
uses: actions/setup-python@v2
18+
with:
19+
python-version: ${{ matrix.python }}
20+
21+
- name: Install pynetbox and testing packages.
22+
run: pip install . pycodestyle mock
23+
24+
- name: Run Linter
25+
run: |
26+
pycodestyle pynetbox
27+
pycodestyle --ignore=E501 tests
28+
29+
- name: Run Tests
30+
run: python -m unittest discover
31+

0 commit comments

Comments
 (0)