CI buils with minimal and latest requirements (#500)
* install nim req. * update requirements * drop Cython
This commit is contained in:
parent
bdebe18df6
commit
462788738b
22
.travis.yml
22
.travis.yml
|
@ -16,9 +16,16 @@ language: python
|
||||||
|
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
# - dist: xenial # Ubuntu 16.04
|
- dist: xenial # Ubuntu 16.04
|
||||||
# python: 3.5
|
python: 3.6
|
||||||
# env: TOXENV=py35
|
env:
|
||||||
|
- TOXENV=py36
|
||||||
|
- MIN_REQUIREMENTS=1
|
||||||
|
- dist: xenial # Ubuntu 16.04
|
||||||
|
python: 3.7
|
||||||
|
env:
|
||||||
|
- TOXENV=py37
|
||||||
|
- MIN_REQUIREMENTS=1
|
||||||
- dist: bionic # Ubuntu 18.04
|
- dist: bionic # Ubuntu 18.04
|
||||||
python: 3.6
|
python: 3.6
|
||||||
env: TOXENV=py36
|
env: TOXENV=py36
|
||||||
|
@ -51,6 +58,15 @@ install:
|
||||||
- pip install future # needed for `builtins`
|
- pip install future # needed for `builtins`
|
||||||
- sudo pip install tox
|
- sudo pip install tox
|
||||||
|
|
||||||
|
before_script:
|
||||||
|
# rewrite all minimal requirements as strict
|
||||||
|
- if [[ "${MIN_REQUIREMENTS}" == "1" ]]; then
|
||||||
|
python -c "req = open('requirements.txt').read().replace('>', '=') ; open('requirements-ci.txt', 'w').write(req)" ;
|
||||||
|
else
|
||||||
|
cp requirements.txt requirements-ci.txt ;
|
||||||
|
fi
|
||||||
|
- pip install -r requirements-ci.txt -U
|
||||||
|
|
||||||
script:
|
script:
|
||||||
# integration
|
# integration
|
||||||
- tox --sitepackages
|
- tox --sitepackages
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
scikit-learn==0.20.2
|
scikit-learn>=0.20.2
|
||||||
tqdm==4.35.0
|
tqdm>=4.35.0
|
||||||
numpy==1.16.4
|
numpy>=1.16.4
|
||||||
torch>=1.1
|
torch>=1.1
|
||||||
torchvision>=0.3.0
|
torchvision>=0.3.0
|
||||||
pandas>=0.20.3
|
pandas>=0.24 # lower version do not support py3.7
|
||||||
test-tube>=0.6.9
|
test-tube>=0.6.9
|
||||||
# future>=0.17.1 # required for buildins in setup.py
|
# future>=0.17.1 # required for buildins in setup.py
|
|
@ -52,7 +52,7 @@ omit =
|
||||||
[flake8]
|
[flake8]
|
||||||
# TODO: this should be 88 or 100 according PEP8
|
# TODO: this should be 88 or 100 according PEP8
|
||||||
max-line-length = 120
|
max-line-length = 120
|
||||||
exclude = .tox,*.egg,build,temp,examples/*
|
exclude = .tox,*.egg,build,temp
|
||||||
select = E,W,F
|
select = E,W,F
|
||||||
doctests = True
|
doctests = True
|
||||||
verbose = 2
|
verbose = 2
|
||||||
|
@ -60,6 +60,7 @@ verbose = 2
|
||||||
format = pylint
|
format = pylint
|
||||||
ignore = E731,W504,F401,F841
|
ignore = E731,W504,F401,F841
|
||||||
|
|
||||||
|
# setup.cfg or tox.ini
|
||||||
[check-manifest]
|
[check-manifest]
|
||||||
ignore =
|
ignore =
|
||||||
.travis.yml
|
.travis.yml
|
||||||
|
|
4
tox.ini
4
tox.ini
|
@ -31,11 +31,11 @@ basepython =
|
||||||
py37: python3.7
|
py37: python3.7
|
||||||
py38: python3.8
|
py38: python3.8
|
||||||
deps =
|
deps =
|
||||||
-r requirements.txt
|
-r requirements-ci.txt
|
||||||
-r ./tests/requirements.txt
|
-r ./tests/requirements.txt
|
||||||
commands =
|
commands =
|
||||||
pip list
|
pip list
|
||||||
check-manifest
|
check-manifest --ignore requirements-ci.txt
|
||||||
python setup.py check --metadata --strict
|
python setup.py check --metadata --strict
|
||||||
coverage run --source pytorch_lightning -m py.test pytorch_lightning tests pl_examples -v --doctest-modules
|
coverage run --source pytorch_lightning -m py.test pytorch_lightning tests pl_examples -v --doctest-modules
|
||||||
flake8 .
|
flake8 .
|
||||||
|
|
Loading…
Reference in New Issue