Skip to content

Commit

Permalink
[chores] Some requested changes
Browse files Browse the repository at this point in the history
- Downgrade to python3.6
- Add qa checks for docs
- Fix failing build
  • Loading branch information
purhan committed May 31, 2021
1 parent 52bc2ef commit 34aa5ff
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 14 deletions.
14 changes: 5 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
fail-fast: false
matrix:
python-version:
- 3.7
- 3.6

steps:
- uses: actions/checkout@v2
Expand All @@ -36,20 +36,16 @@ jobs:
run: pip install -U "pip==20.2.4" wheel setuptools

- name: Install netengine
run: |
pip install -e .
run: pip install -e .

- name: Install test dependencies
run: |
pip install -U -r requirements-test.txt
run: pip install -U -r requirements-test.txt

- name: Run QA Checks
run: |
./run-qa-checks
run: ./run-qa-checks

- name: Run tests
run: |
./runtests.py
run: ./runtests.py

- name: Upload Coverage
run: coveralls --service=github
Expand Down
6 changes: 4 additions & 2 deletions docs/source/topics/usage.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@
Usage
*****

The usage of Netengine module requires it to be installed properly as explained in :ref:`index_reference`.
The usage of Netengine module requires it to be installed properly as explained in :doc:`index<../index>`.
If you have an installation under a virtualenv, enter the folder /bin and type::
source activate

source activate

otherwise (if you have installed globally) just open an editor as bpython and you we are ready to go.

These are the main steps to follow to use the module:
Expand Down
1 change: 1 addition & 0 deletions requirements-test.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
nose~=1.3.7
coverage~=5.5
sphinx~=4.0.2
openwisp-utils[qa]~=0.7.4
4 changes: 4 additions & 0 deletions run-qa-checks
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,7 @@
set -e

openwisp-qa-check --skip-checkmigrations

# test sphinx docs
mkdir -p docs/source/_static
make -C docs html
1 change: 0 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ max-line-length = 110
ignore = W605, W503, W504

[isort]
known_first_party = openwisp_utils
line_length=88
multi_line_output=3
use_parentheses=True
Expand Down
3 changes: 2 additions & 1 deletion tests/test_snmp/test_airos.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import unittest
from unittest.mock import patch

from pysnmp.entity.rfc3413.oneliner import cmdgen
from pysnmp.smi.error import NoSuchObjectError
Expand Down Expand Up @@ -168,4 +169,4 @@ def test_uptime_tuple(self):
self.assertIsInstance(self.device.uptime_tuple, tuple)

def tearDown(self):
self.getcmd_patcher.stop()
patch.stopall()
3 changes: 2 additions & 1 deletion tests/test_snmp/test_openwrt.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import unittest
from unittest.mock import patch

from pysnmp.entity.rfc3413.oneliner import cmdgen

Expand Down Expand Up @@ -106,4 +107,4 @@ def test_manufacturer_to_dict(self):
self.assertIsNotNone(self.device.to_dict()['manufacturer'])

def tearDown(self):
self.getcmd_patcher.stop()
patch.stopall()

0 comments on commit 34aa5ff

Please sign in to comment.