Commit 4552d024 authored by mchrusci's avatar mchrusci Committed by Michał Karzyński

[ONNX CI] Update GitHub credentials (#1905)

parent 835ecad9
...@@ -23,7 +23,7 @@ CI_ROOT = "ngraph/.ci/onnx/jenkins" ...@@ -23,7 +23,7 @@ CI_ROOT = "ngraph/.ci/onnx/jenkins"
DOCKER_CONTAINER_NAME = "jenkins_${PROJECT_NAME}_ci" DOCKER_CONTAINER_NAME = "jenkins_${PROJECT_NAME}_ci"
NGRAPH_GIT_ADDRESS = "https://github.com/NervanaSystems/ngraph.git" NGRAPH_GIT_ADDRESS = "https://github.com/NervanaSystems/ngraph.git"
ONNX_GIT_ADDRESS = "https://github.com/NervanaSystems/ngraph-onnx.git" ONNX_GIT_ADDRESS = "https://github.com/NervanaSystems/ngraph-onnx.git"
JENKINS_GITHUB_CREDENTIAL_ID = "6887a177-8c4d-4fe9-9c3b-fcd71b22bfba" JENKINS_GITHUB_CREDENTIAL_ID = "7157091e-bc04-42f0-99fd-dc4da2922a55"
ONNX_BRANCH = "$ghprbSourceBranch" ONNX_BRANCH = "$ghprbSourceBranch"
def CloneRepository(String jenkins_github_credential_id, String ngraph_git_address, String onnx_git_address) { def CloneRepository(String jenkins_github_credential_id, String ngraph_git_address, String onnx_git_address) {
......
...@@ -219,8 +219,11 @@ def test_constant_get_data_signed_integer(data_type): ...@@ -219,8 +219,11 @@ def test_constant_get_data_signed_integer(data_type):
def test_constant_get_data_unsigned_integer(data_type): def test_constant_get_data_unsigned_integer(data_type):
np.random.seed(133391) np.random.seed(133391)
input_data = np.random.randn(2, 3, 4).astype(data_type) input_data = np.random.randn(2, 3, 4).astype(data_type)
input_data = (np.iinfo(data_type).min + input_data * np.iinfo(data_type).max + input_data = (
input_data * np.iinfo(data_type).max) np.iinfo(data_type).min
+ input_data * np.iinfo(data_type).max
+ input_data * np.iinfo(data_type).max
)
node = ng.constant(input_data, dtype=data_type) node = ng.constant(input_data, dtype=data_type)
retrieved_data = node.get_data() retrieved_data = node.get_data()
assert np.allclose(input_data, retrieved_data) assert np.allclose(input_data, retrieved_data)
...@@ -23,7 +23,7 @@ deps = ...@@ -23,7 +23,7 @@ deps =
commands= commands=
{envbindir}/python setup.py develop {envbindir}/python setup.py develop
flake8 {posargs:pyngraph/ ngraph/ examples/} flake8 {posargs:pyngraph/ ngraph/ examples/}
flake8 --ignore=D100,D101,D102,D103,D104,D105,D107 test/ # ignore lack of docs in tests flake8 --ignore=D100,D101,D102,D103,D104,D105,D107,W503 test/ # ignore lack of docs in tests
mypy --config-file=tox.ini {posargs:pyngraph/ ngraph/ examples/} # Use MyPy in Python 3 only mypy --config-file=tox.ini {posargs:pyngraph/ ngraph/ examples/} # Use MyPy in Python 3 only
pytest {posargs:test/} pytest {posargs:test/}
...@@ -31,7 +31,7 @@ commands= ...@@ -31,7 +31,7 @@ commands=
commands= commands=
{envbindir}/python setup.py develop {envbindir}/python setup.py develop
flake8 {posargs:pyngraph/ ngraph/ examples/} flake8 {posargs:pyngraph/ ngraph/ examples/}
flake8 --ignore=D100,D101,D102,D103,D104,D105,D107 test/ # ignore lack of docs in tests flake8 --ignore=D100,D101,D102,D103,D104,D105,D107,W503 test/ # ignore lack of docs in tests
pytest {posargs:test/} pytest {posargs:test/}
[testenv:devenv] [testenv:devenv]
...@@ -48,7 +48,8 @@ max-complexity=7 ...@@ -48,7 +48,8 @@ max-complexity=7
# D105 - Missing docstring in magic method # D105 - Missing docstring in magic method
# D107 - Missing docstring in __init__ # D107 - Missing docstring in __init__
# F401 - module imported but unused # F401 - module imported but unused
ignore=D100,D104,D105,D107,F401 # W503 - line break before binary operator (prefer line breaks before op, not after)
ignore=D100,D104,D105,D107,F401,W503
[mypy] [mypy]
strict_optional = True strict_optional = True
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment