mirror of https://github.com/nucypher/nucypher.git
commit
b60b078582
|
@ -52,17 +52,19 @@ jobs:
|
||||||
- save_cache:
|
- save_cache:
|
||||||
paths:
|
paths:
|
||||||
- "~/.local/share/virtualenvs/"
|
- "~/.local/share/virtualenvs/"
|
||||||
key: v1-deps-{{ .Environment.CIRCLE_WORKFLOW_ID }}-{{ checksum "Pipfile" }}
|
key: v3-deps-{{ .Environment.CIRCLE_WORKFLOW_ID }}-{{ checksum "Pipfile" }}
|
||||||
|
|
||||||
blockchain_interface_unit:
|
blockchain_interface_unit:
|
||||||
<<: *python_36_base
|
<<: *python_36_base
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
- restore_cache:
|
- restore_cache:
|
||||||
key: v1-deps-{{ .Environment.CIRCLE_WORKFLOW_ID }}-{{ checksum "Pipfile" }}
|
key: v3-deps-{{ .Environment.CIRCLE_WORKFLOW_ID }}-{{ checksum "Pipfile" }}
|
||||||
- run:
|
- run:
|
||||||
name: Blockchain Interface Tests
|
name: Blockchain Interface Tests
|
||||||
command: pipenv run pytest --cov=nucypher/blockchain/eth -v --runslow tests/blockchain/eth/interfaces tests/blockchain/eth/entities
|
command: pipenv run pytest --cov=nucypher/blockchain/eth -v --runslow tests/blockchain/eth/interfaces tests/blockchain/eth/entities --junitxml=./reports/pytest/results.xml
|
||||||
|
- store_test_results:
|
||||||
|
path: ./reports/pytest/
|
||||||
|
|
||||||
eth_contract_unit:
|
eth_contract_unit:
|
||||||
<<: *python_36_base
|
<<: *python_36_base
|
||||||
|
@ -70,7 +72,7 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
- restore_cache:
|
- restore_cache:
|
||||||
key: v1-deps-{{ .Environment.CIRCLE_WORKFLOW_ID }}-{{ checksum "Pipfile" }}
|
key: v3-deps-{{ .Environment.CIRCLE_WORKFLOW_ID }}-{{ checksum "Pipfile" }}
|
||||||
- run:
|
- run:
|
||||||
name: Ethereum Contract Unit Tests
|
name: Ethereum Contract Unit Tests
|
||||||
command: |
|
command: |
|
||||||
|
@ -83,60 +85,74 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
- restore_cache:
|
- restore_cache:
|
||||||
key: v1-deps-{{ .Environment.CIRCLE_WORKFLOW_ID }}-{{ checksum "Pipfile" }}
|
key: v3-deps-{{ .Environment.CIRCLE_WORKFLOW_ID }}-{{ checksum "Pipfile" }}
|
||||||
- run:
|
- run:
|
||||||
name: Crypto Character Tests
|
name: Crypto Character Tests
|
||||||
command: pipenv run pytest --cov=nucypher/crypto -v --runslow tests/crypto
|
command: pipenv run pytest --cov=nucypher/crypto -v --runslow tests/crypto --junitxml=./reports/pytest/results.xml
|
||||||
|
- store_test_results:
|
||||||
|
path: ./reports/pytest/
|
||||||
|
|
||||||
network_unit:
|
network_unit:
|
||||||
<<: *python_36_base
|
<<: *python_36_base
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
- restore_cache:
|
- restore_cache:
|
||||||
key: v1-deps-{{ .Environment.CIRCLE_WORKFLOW_ID }}-{{ checksum "Pipfile" }}
|
key: v3-deps-{{ .Environment.CIRCLE_WORKFLOW_ID }}-{{ checksum "Pipfile" }}
|
||||||
- run:
|
- run:
|
||||||
name: Network Tests
|
name: Network Tests
|
||||||
command: pipenv run pytest --cov=nucypher/network -v --runslow tests/network
|
command: pipenv run pytest --cov=nucypher/network -v --runslow tests/network --junitxml=./reports/pytest/results.xml
|
||||||
|
- store_test_results:
|
||||||
|
path: ./reports/pytest/
|
||||||
|
|
||||||
keystore_unit:
|
keystore_unit:
|
||||||
<<: *python_36_base
|
<<: *python_36_base
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
- restore_cache:
|
- restore_cache:
|
||||||
key: v1-deps-{{ .Environment.CIRCLE_WORKFLOW_ID }}-{{ checksum "Pipfile" }}
|
key: v3-deps-{{ .Environment.CIRCLE_WORKFLOW_ID }}-{{ checksum "Pipfile" }}
|
||||||
- run:
|
- run:
|
||||||
name: Keystore Tests
|
name: Keystore Tests
|
||||||
command: pipenv run pytest --cov=nucypher/keystore -v --runslow tests/keystore
|
command: pipenv run pytest --cov=nucypher/keystore -v --runslow tests/keystore --junitxml=./reports/pytest/results.xml
|
||||||
|
- store_test_results:
|
||||||
|
path: ./reports/pytest/
|
||||||
|
|
||||||
character:
|
character:
|
||||||
<<: *python_36_base
|
<<: *python_36_base
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
- restore_cache:
|
- restore_cache:
|
||||||
key: v1-deps-{{ .Environment.CIRCLE_WORKFLOW_ID }}-{{ checksum "Pipfile" }}
|
key: v3-deps-{{ .Environment.CIRCLE_WORKFLOW_ID }}-{{ checksum "Pipfile" }}
|
||||||
- run:
|
- run:
|
||||||
name: Character Tests
|
name: Character Tests
|
||||||
command: pipenv run pytest --cov=nucypher/characters -v --runslow tests/characters
|
command: pipenv run pytest --cov=nucypher/characters -v --runslow tests/characters --junitxml=./reports/pytest/results.xml
|
||||||
|
- store_test_results:
|
||||||
|
path: ./reports/pytest/
|
||||||
|
|
||||||
intercontract_integration:
|
intercontract_integration:
|
||||||
<<: *python_36_base
|
<<: *python_36_base
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
- restore_cache:
|
- restore_cache:
|
||||||
key: v1-deps-{{ .Environment.CIRCLE_WORKFLOW_ID }}-{{ checksum "Pipfile" }}
|
key: v3-deps-{{ .Environment.CIRCLE_WORKFLOW_ID }}-{{ checksum "Pipfile" }}
|
||||||
- run:
|
- run:
|
||||||
name: Ethereum Inter-Contract Integration Test
|
name: Ethereum Inter-Contract Integration Test
|
||||||
command: |
|
command: |
|
||||||
pipenv run pytest -v --runslow tests/blockchain/eth/contracts/integration
|
pipenv run pytest -v --runslow tests/blockchain/eth/contracts/integration --junitxml=./reports/pytest/results.xml
|
||||||
|
- store_test_results:
|
||||||
|
path: ./reports/pytest/
|
||||||
|
|
||||||
mypy_type_check:
|
mypy_type_check:
|
||||||
<<: *python_36_base
|
<<: *python_36_base
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
- restore_cache:
|
- restore_cache:
|
||||||
key: v1-deps-{{ .Environment.CIRCLE_WORKFLOW_ID }}-{{ checksum "Pipfile" }}
|
key: v3-deps-{{ .Environment.CIRCLE_WORKFLOW_ID }}-{{ checksum "Pipfile" }}
|
||||||
- run:
|
- run:
|
||||||
name: Run Mypy Static Type Checks
|
name: Run Mypy Static Type Checks
|
||||||
command: pipenv run mypy --xslt-html-report ./mypy_report ./nucypher --config-file=mypy.ini
|
command: |
|
||||||
|
mkdir ./mypy_reports ./mypy_results
|
||||||
|
pipenv run mypy ./nucypher --config-file=mypy.ini --xslt-html-report ./mypy_reports/html/ --linecount-report ./mypy_reports/linecount --junit-xml ./mypy_results/results.xml
|
||||||
- store_artifacts:
|
- store_artifacts:
|
||||||
path: ./mypy_report
|
path: ./mypy_reports
|
||||||
|
- store_test_results:
|
||||||
|
path: ./mypy_results
|
||||||
|
|
6
Pipfile
6
Pipfile
|
@ -23,7 +23,7 @@ pynacl = "*"
|
||||||
pysha3 = "*"
|
pysha3 = "*"
|
||||||
py_ecc = "*"
|
py_ecc = "*"
|
||||||
pyumbral = {git = "https://github.com/nucypher/pyumbral.git", ref = "nucypher-depend"}
|
pyumbral = {git = "https://github.com/nucypher/pyumbral.git", ref = "nucypher-depend"}
|
||||||
web3 = "*"
|
web3 = "==4.4.1"
|
||||||
|
|
||||||
[dev-packages]
|
[dev-packages]
|
||||||
pytest = "*"
|
pytest = "*"
|
||||||
|
@ -33,8 +33,8 @@ codecov = "*"
|
||||||
coverage = "*"
|
coverage = "*"
|
||||||
pytest-cov = "*"
|
pytest-cov = "*"
|
||||||
py-solc = "*"
|
py-solc = "*"
|
||||||
py-evm = "*"
|
py-evm = "==0.2.0a18"
|
||||||
eth-tester = "*"
|
eth-tester = "==0.1.0b28"
|
||||||
|
|
||||||
[pipenv]
|
[pipenv]
|
||||||
allow_prereleases = true
|
allow_prereleases = true
|
||||||
|
|
Loading…
Reference in New Issue