-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrate from 'Travis CI' to 'GitHub Actions' (...)
Made corrections for pylint upgrade: pylint --rcfile=./.pylintrc --reports=y --output-format=text nistbeacon ************* Module nistbeacon.nistbeacon nistbeacon/nistbeacon.py:23:0: R0205: Class 'NistBeacon' inherits from object, can be safely removed from bases in python3 (useless-object-inheritance) nistbeacon/nistbeacon.py:69:12: R1705: Unnecessary "else" after "return" (no-else-return) nistbeacon/nistbeacon.py:80:4: R1710: Either all return statements in a function should return an expression, or none of them should. (inconsistent-return-statements) nistbeacon/nistbeacon.py:160:8: R1705: Unnecessary "else" after "return" (no-else-return) ************* Module nistbeacon.nistbeaconvalue nistbeacon/nistbeaconvalue.py:26:0: R0205: Class 'NistBeaconValue' inherits from object, can be safely removed from bases in python3 (useless-object-inheritance) ************* Module nistbeacon.nistbeaconcrypto nistbeacon/nistbeaconcrypto.py:26:0: R0205: Class 'NistBeaconCrypto' inherits from object, can be safely removed from bases in python3 (useless-object-inheritance) nistbeacon/nistbeaconcrypto.py:186:21: R1719: The if expression can be replaced with 'test' (simplifiable-if-expression)
- Loading branch information
Showing
16 changed files
with
470 additions
and
179 deletions.
There are no files selected for viewing
Empty file.
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,6 @@ | ||
coverage: | ||
status: | ||
patch: | ||
default: | ||
enabled: yes | ||
target: 100% |
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,60 @@ | ||
name: Linting Checks | ||
|
||
|
||
on: | ||
pull_request: | ||
branches: | ||
- master | ||
|
||
|
||
jobs: | ||
linting-checks: | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
python-version: | ||
- 3.8 | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip wheel | ||
pip install -r requirements-test.txt | ||
- name: Pep8 Check | ||
run: make pep8 | ||
|
||
- name: Pylint Check | ||
run: make pylint | ||
|
||
version-check: | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
python-version: | ||
- 3.8 | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip wheel | ||
pip install -r requirements-test.txt | ||
- name: Version Check | ||
run: make version-check |
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,53 @@ | ||
name: Package Building | ||
|
||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
|
||
|
||
jobs: | ||
build-beta: | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
python-version: | ||
- 3.8 | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip wheel | ||
pip install -r requirements-test.txt | ||
- name: Build beta packages | ||
run: make build-beta | ||
|
||
- name: Archive beta package | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: python-package-nistbeacon-tar-ball.tar.gz | ||
path: beta_dist/nistbeacon-*.tar.gz | ||
if-no-files-found: error | ||
retention-days: 90 | ||
|
||
- name: Archive beta python wheel | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: python-package-nistbeacon-wheel.whl | ||
path: beta_dist/nistbeacon-*.whl | ||
if-no-files-found: error | ||
retention-days: 90 | ||
|
||
- name: Show generated beta package names | ||
shell: bash | ||
run: ls -1a beta_dist/ |
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,45 @@ | ||
name: Pull Request Test | ||
|
||
|
||
on: | ||
pull_request: | ||
branches: | ||
- master | ||
|
||
|
||
jobs: | ||
pull-request-test: | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
python-version: | ||
- 3.8 | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Environment Report | ||
run: | | ||
echo Python Version ... $(python --version) | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip wheel | ||
pip install -r requirements-test.txt | ||
- name: Unit Testing | ||
run: make unittest | ||
|
||
- name: Local Integration Testing | ||
run: make integration | ||
|
||
- name: Upload Coverage Report | ||
uses: codecov/codecov-action@v1 | ||
with: | ||
fail_ci_if_error: true |
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,47 @@ | ||
name: Comprehensive Testing | ||
|
||
|
||
on: | ||
pull_request: | ||
branches: | ||
- master | ||
|
||
|
||
jobs: | ||
testing: | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
python-version: | ||
- 3.8 | ||
- 3.7 | ||
- 3.6 | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Environment Report | ||
run: | | ||
echo Python Version ... $(python --version) | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip wheel | ||
pip install -r requirements-test.txt | ||
- name: Unit Testing | ||
run: make unittest | ||
|
||
- name: Local Integration Testing | ||
run: make integration | ||
|
||
- name: Upload Coverage Report | ||
uses: codecov/codecov-action@v1 | ||
with: | ||
fail_ci_if_error: true |
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,16 +1,21 @@ | ||
### Python ### | ||
__pycache__/ | ||
*.py[cod] | ||
|
||
# Packaging | ||
dist/ | ||
MANIFEST | ||
|
||
*.egg-info/ | ||
build/ | ||
dist/ | ||
beta_dist/ | ||
|
||
# Sphinx | ||
sphinx/_build | ||
|
||
# Testing | ||
.coverage | ||
|
||
.cache/ | ||
.tox/ | ||
htmlcov/ | ||
|
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.