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:
|
||||
include:
|
||||
# - dist: xenial # Ubuntu 16.04
|
||||
# python: 3.5
|
||||
# env: TOXENV=py35
|
||||
- dist: xenial # Ubuntu 16.04
|
||||
python: 3.6
|
||||
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
|
||||
python: 3.6
|
||||
env: TOXENV=py36
|
||||
|
@ -51,6 +58,15 @@ install:
|
|||
- pip install future # needed for `builtins`
|
||||
- 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:
|
||||
# integration
|
||||
- tox --sitepackages
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
scikit-learn==0.20.2
|
||||
tqdm==4.35.0
|
||||
numpy==1.16.4
|
||||
scikit-learn>=0.20.2
|
||||
tqdm>=4.35.0
|
||||
numpy>=1.16.4
|
||||
torch>=1.1
|
||||
torchvision>=0.3.0
|
||||
pandas>=0.20.3
|
||||
pandas>=0.24 # lower version do not support py3.7
|
||||
test-tube>=0.6.9
|
||||
# future>=0.17.1 # required for buildins in setup.py
|
|
@ -52,7 +52,7 @@ omit =
|
|||
[flake8]
|
||||
# TODO: this should be 88 or 100 according PEP8
|
||||
max-line-length = 120
|
||||
exclude = .tox,*.egg,build,temp,examples/*
|
||||
exclude = .tox,*.egg,build,temp
|
||||
select = E,W,F
|
||||
doctests = True
|
||||
verbose = 2
|
||||
|
@ -60,6 +60,7 @@ verbose = 2
|
|||
format = pylint
|
||||
ignore = E731,W504,F401,F841
|
||||
|
||||
# setup.cfg or tox.ini
|
||||
[check-manifest]
|
||||
ignore =
|
||||
.travis.yml
|
||||
|
|
4
tox.ini
4
tox.ini
|
@ -31,11 +31,11 @@ basepython =
|
|||
py37: python3.7
|
||||
py38: python3.8
|
||||
deps =
|
||||
-r requirements.txt
|
||||
-r requirements-ci.txt
|
||||
-r ./tests/requirements.txt
|
||||
commands =
|
||||
pip list
|
||||
check-manifest
|
||||
check-manifest --ignore requirements-ci.txt
|
||||
python setup.py check --metadata --strict
|
||||
coverage run --source pytorch_lightning -m py.test pytorch_lightning tests pl_examples -v --doctest-modules
|
||||
flake8 .
|
||||
|
|
Loading…
Reference in New Issue