Skip to content

Commit

Permalink
Add wheel-cli tests to circle and tox
Browse files Browse the repository at this point in the history
  • Loading branch information
kclowes committed Jan 10, 2020
1 parent 0b6000c commit f4420ef
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 3 deletions.
30 changes: 27 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,12 @@ jobs:
environment:
TOXENV: py36-integration-ethtester
ETHEREUM_TESTER_CHAIN_BACKEND: eth_tester.backends.PyEVMBackend
py36-wheel-cli:
<<: *common
docker:
- image: circleci/python:3.6
environment:
TOXENV: py36-wheel-cli
#
# Python 3.7
#
Expand Down Expand Up @@ -372,6 +378,12 @@ jobs:
environment:
TOXENV: py37-integration-ethtester
ETHEREUM_TESTER_CHAIN_BACKEND: eth_tester.backends.PyEVMBackend
py37-wheel-cli:
<<: *common
docker:
- image: circleci/python:3.7
environment:
TOXENV: py37-wheel-cli
#
# Python 3.8
#
Expand Down Expand Up @@ -481,13 +493,24 @@ jobs:
TOXENV: py38-integration-ethtester
ETHEREUM_TESTER_CHAIN_BACKEND: eth_tester.backends.PyEVMBackend

py38-wheel-cli:
<<: *common
docker:
- image: circleci/python:3.8
environment:
TOXENV: py38-wheel-cli

workflows:
version: 2
test:
jobs:
# These are the longest running tests, start them first
- py36-core
- py37-core
- py38-core

- lint
- docs
- py36-core
- py36-ens
- py36-ethpm
- py36-integration-goethereum-ipc-1.7.2
Expand All @@ -500,7 +523,7 @@ workflows:
- py36-integration-parity-http
- py36-integration-parity-ws
- py36-integration-ethtester-pyevm
- py37-core
- py36-wheel-cli
- py37-ens
- py37-ethpm
- py37-integration-goethereum-ipc-1.7.2
Expand All @@ -513,7 +536,7 @@ workflows:
- py37-integration-parity-http
- py37-integration-parity-ws
- py37-integration-ethtester-pyevm
- py38-core
- py37-wheel-cli
- py38-ens
- py38-ethpm
- py38-integration-goethereum-ipc-1.7.2
Expand All @@ -526,3 +549,4 @@ workflows:
- py38-integration-parity-http
- py38-integration-parity-ws
- py38-integration-ethtester-pyevm
- py38-wheel-cli
31 changes: 31 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ envlist=
py{36,37,38}-integration-{goethereum,ethtester,parity}
lint
docs
py{36,37,38}-wheel-cli

[isort]
combine_as_imports=True
Expand All @@ -24,6 +25,7 @@ max-line-length= 100
exclude= venv*,.tox,docs,build
ignore=
[testenv]
whitelist_externals=/bin/make
install_command=python -m pip install --no-use-pep517 {opts} {packages}
usedevelop=True
commands=
Expand Down Expand Up @@ -64,3 +66,32 @@ commands=
flake8 {toxinidir}/web3 {toxinidir}/ens {toxinidir}/ethpm {toxinidir}/tests
isort --recursive --check-only --diff {toxinidir}/web3/ {toxinidir}/ens/ {toxinidir}/ethpm/ {toxinidir}/tests/
mypy -p web3 -p ethpm -p ens --config-file {toxinidir}/mypy.ini

[common-wheel-cli]
deps=wheel
whitelist_externals=
/bin/rm
/bin/bash
commands=
/bin/rm -rf build dist
python setup.py sdist bdist_wheel
/bin/bash -c 'pip install --upgrade "$(ls dist/web3-*-py3-none-any.whl)" --progress-bar off'
python -c "from web3.auto import w3"

[testenv:py36-wheel-cli]
deps={[common-wheel-cli]deps}
whitelist_externals={[common-wheel-cli]whitelist_externals}
commands={[common-wheel-cli]commands}
skip_install=true

[testenv:py37-wheel-cli]
deps={[common-wheel-cli]deps}
whitelist_externals={[common-wheel-cli]whitelist_externals}
commands={[common-wheel-cli]commands}
skip_install=true

[testenv:py38-wheel-cli]
deps={[common-wheel-cli]deps}
whitelist_externals={[common-wheel-cli]whitelist_externals}
commands={[common-wheel-cli]commands}
skip_install=true

0 comments on commit f4420ef

Please sign in to comment.