Skip to content

Commit

Permalink
Created Github Workflow
Browse files Browse the repository at this point in the history
Created a workflow to run pytests and pylint at pull request to master branch.
  • Loading branch information
khalford committed Oct 12, 2023
1 parent 4453187 commit d10e136
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/Pynetbox.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Pynetbox Data Uploader Tests

on:
push:
branches:
- master
pull_request:
paths:
- "Pynetbox_Data_Uploader/**"
- ".github/workflows/Pynetbox.yaml"

jobs:
test_and_lint:
runs-on: ubuntu-20.04
strategy:
matrix:
python-version: ["3.x"]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
cache: "pip"

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r ./requirements.txt
- name: Run tests
run: cd Tests/ && python3 -m pytest .

- name: Analyse with pylint
run: |
pylint lib

0 comments on commit d10e136

Please sign in to comment.