Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

User methods 2 #122

Merged
merged 17 commits into from
Nov 24, 2023
Merged
Show file tree
Hide file tree
Changes from 14 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
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Pynetbox Codecov
name: Pylint-Tests-Codecov

on:
push:
Expand All @@ -10,7 +10,7 @@ on:
- ".github/workflows/pynetbox.yaml"

jobs:
Codecov:
Pylint-Tests-Codecov:
runs-on: ubuntu-20.04
strategy:
matrix:
Expand All @@ -28,10 +28,15 @@ jobs:
python -m pip install --upgrade pip
cd pynetbox_query
pip install -r requirements.txt


- name: Analyse with pylint
run: cd pynetbox_query && pylint $(git ls-files '*.py')

- name: Run tests and collect coverage
run: cd pynetbox_query && python3 -m pytest

- name: Run tests and collect coverage
run: cd pynetbox_query && python3 -m pytest --cov-report xml:coverage.xml --cov
run: cd pynetbox_query && python3 -m pytest . --cov-report xml:coverage.xml --cov

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
Expand Down
35 changes: 0 additions & 35 deletions .github/workflows/pynetbox_pylint.yaml

This file was deleted.

34 changes: 0 additions & 34 deletions .github/workflows/pynetbox_tests.yaml

This file was deleted.

2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,5 @@ venv/

.coverage
coverage.xml
pynetbox_query/pynetboxQuery.egg-info/
pynetbox_query/build
2 changes: 1 addition & 1 deletion pynetbox_query/.coveragerc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[report]

exclude_lines =
if __name__ == .__main__.:
if __name__ == .__main__.:
6 changes: 0 additions & 6 deletions pynetbox_query/.pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,3 @@ max-line-length=120
# C0114: Missing module string - we don't need module strings for the small repo

disable=C0114

# Ignore the venv folder.
# Despite venv not being pushed to the Repo.
# It's useful to have here for development purposes.

ignore=venv
25 changes: 0 additions & 25 deletions pynetbox_query/pynetbox_query/netbox_api/netbox_check.py

This file was deleted.

25 changes: 0 additions & 25 deletions pynetbox_query/pynetbox_query/netbox_api/netbox_connect.py

This file was deleted.

39 changes: 0 additions & 39 deletions pynetbox_query/pynetbox_query/netbox_api/netbox_create.py

This file was deleted.

147 changes: 0 additions & 147 deletions pynetbox_query/pynetbox_query/user_methods/csv_to_netbox.py

This file was deleted.

27 changes: 0 additions & 27 deletions pynetbox_query/pynetbox_query/utils/csv_to_dataclass.py

This file was deleted.

Loading
Loading