Added fix to handle mode telnet #75
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Pylint | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
python-version: [3.7.13, 3.8.12, 3.9.12] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Validate version | |
run: | | |
$pythonVersion = (python --version) | |
if ("Python ${{ matrix.python-version }}" -ne "$pythonVersion"){ | |
Write-Host "The current version is $pythonVersion; expected version is ${{ matrix.python-version }}" | |
exit 1 | |
} | |
$pythonVersion | |
shell: pwsh | |
- name: Install dependencies | |
run: | | |
pip install --upgrade pip | |
pip install pylint | |
pip install -r requirements.txt | |
pip install -r development.txt | |
pip install jsnapy==1.3.7 --no-binary :all: --no-cache-dir | |
- name: Analysing the code with pylint | |
run: | | |
sudo find . -type f -name "*.py" | xargs pylint | grep . | |
- name: Run black tool | |
run: | | |
pip install -U black; | |
black --check --diff --exclude="docs|build|tests|samples|venv" . | |
- name: Run unit test | |
run: | | |
pip install nose | |
pip install mock | |
pip install coverage | |
pip install ntc_templates==1.4.1 | |
pip install textfsm==0.4.1 | |
cd tests/ | |
nosetests -v --with-coverage --cover-package=jnpr.jsnapy --cover-inclusive -a unit |