Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: PR Test

on: [pull_request]

jobs:
build:

runs-on: ubuntu-latest
strategy:
matrix:
python: [2.7, 3.6]

steps:
- uses: actions/checkout@v2

- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python }}

- name: Install pynetbox and testing packages.
run: pip install . pycodestyle mock

- name: Run Linter
run: |
pycodestyle pynetbox
pycodestyle --ignore=E501 tests

- name: Run Tests
run: python -m unittest discover