-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #20 from napalm-automation-community/develop
Release 3.0.1
- Loading branch information
Showing
9 changed files
with
75 additions
and
36 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
--- | ||
name: build | ||
on: [push, pull_request] | ||
jobs: | ||
test: | ||
name: Lint and test | ||
runs-on: ubuntu-latest | ||
strategy: | ||
max-parallel: 4 | ||
matrix: | ||
python-version: [3.6, 3.7, 3.8, 3.9] | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
- name: Setup Python | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
python -m pip install -r requirements-dev.txt | ||
python -m pip install -e . | ||
- name: Run black | ||
run: | | ||
black --check . | ||
- name: Run linter | ||
run: | | ||
pylava . | ||
- name: Run Tests | ||
run: | | ||
py.test --cov=napalm --cov-report term-missing -vs | ||
release: | ||
name: Build wheels and upload | ||
runs-on: ubuntu-latest | ||
needs: test | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
- name: Setup Python | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: 3.9 | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip wheel | ||
python -m pip install -r requirements-dev.txt | ||
- name: Build wheel | ||
run: | | ||
python setup.py bdist_wheel --universal --build-number $GITHUB_RUN_NUMBER | ||
- name: Upload to test | ||
if: github.event_name == 'push' | ||
uses: pypa/gh-action-pypi-publish@master | ||
with: | ||
password: ${{ secrets.TEST_PYPI_API_TOKEN }} | ||
repository_url: https://test.pypi.org/legacy/ | ||
skip_existing: true | ||
- name: Upload Pypi | ||
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') | ||
uses: pypa/gh-action-pypi-publish@master | ||
with: | ||
password: ${{ secrets.PYPI_API_TOKEN }} |
This file was deleted.
Oops, something went wrong.
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
black==18.9b0;python_version>="3.6" | ||
black | ||
pytest | ||
pytest-cov | ||
pytest-json | ||
pytest-pythonpath | ||
pylama | ||
pylava | ||
flake8-import-order |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ | |
|
||
setup( | ||
name="napalm-mos", | ||
version="3.0.0", | ||
version="3.0.1", | ||
packages=find_packages(), | ||
author="Benny Holmgren, Brandon Ewing", | ||
author_email="[email protected], [email protected]", | ||
|
1 change: 1 addition & 0 deletions
1
test/unit/mocked_data/test_get_ntp_stats/positive_offset/expected_result.json
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
[{"referenceid": ".GPS.", "remote": "192.0.2.1", "synchronized": false, "hostpoll": 64, "stratum": 1, "when": "17", "delay": 0.343, "reachability": 1, "offset": 0.004, "jitter": 0.0, "type": "u"}, {"referenceid": ".MRS.", "remote": "192.0.2.2", "synchronized": false, "hostpoll": 64, "stratum": 1, "when": "1", "delay": 14.541, "reachability": 1, "offset": -0.001, "jitter": 0.0, "type": "u"}] |
5 changes: 5 additions & 0 deletions
5
test/unit/mocked_data/test_get_ntp_stats/positive_offset/show_ntp_associations.text
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
remote refid st t when poll reach delay offset jitter | ||
============================================================================== | ||
192.0.2.1 .GPS. 1 u 17 64 1 0.343 +0.004 0.000 | ||
192.0.2.2 .MRS. 1 u 1 64 1 14.541 -0.001 0.000 | ||
|