2019-11-13 11:03:13 +00:00
|
|
|
# Python CircleCI 2.0 configuration file
|
|
|
|
#
|
|
|
|
# Check https://circleci.com/docs/2.0/language-python/ for more details
|
|
|
|
#
|
|
|
|
version: 2.0
|
|
|
|
|
|
|
|
references:
|
|
|
|
|
|
|
|
install_deps: &install_deps
|
|
|
|
run:
|
|
|
|
name: Install Dependences
|
|
|
|
command: |
|
|
|
|
pip install "$TORCH_VERSION" --user
|
2019-12-01 08:42:33 +00:00
|
|
|
# this is temporal fix til test-tube is not merged and released
|
2019-11-13 11:03:13 +00:00
|
|
|
pip install -r requirements.txt --user
|
|
|
|
sudo pip install pytest pytest-cov pytest-flake8
|
|
|
|
pip install -r ./tests/requirements.txt --user
|
|
|
|
|
2020-01-16 12:22:29 +00:00
|
|
|
tests: &tests
|
2019-11-13 11:03:13 +00:00
|
|
|
run:
|
2020-01-16 12:22:29 +00:00
|
|
|
name: Testing
|
2019-11-13 11:03:13 +00:00
|
|
|
command: |
|
|
|
|
python --version ; pip --version ; pip list
|
2020-01-16 12:22:29 +00:00
|
|
|
py.test pytorch_lightning tests pl_examples -v --doctest-modules --junitxml=test-reports/pytest_junit.xml
|
2019-11-28 17:06:05 +00:00
|
|
|
no_output_timeout: 15m
|
2019-11-13 11:03:13 +00:00
|
|
|
|
2020-01-16 12:22:29 +00:00
|
|
|
format: &format
|
|
|
|
run:
|
|
|
|
name: Formatting
|
|
|
|
command: |
|
|
|
|
python --version ; pip --version ; pip list
|
|
|
|
flake8
|
|
|
|
|
2019-11-28 17:48:55 +00:00
|
|
|
make_docs: &make_docs
|
|
|
|
run:
|
|
|
|
name: Make Documentation
|
|
|
|
command: |
|
|
|
|
# sudo apt-get install pandoc
|
|
|
|
pip install -r requirements.txt --user
|
|
|
|
sudo pip install -r docs/requirements.txt
|
|
|
|
# sphinx-apidoc -o ./docs/source ./pytorch_lightning **/test_* --force --follow-links
|
|
|
|
cd docs; make clean ; make html
|
|
|
|
|
2019-11-13 11:03:13 +00:00
|
|
|
jobs:
|
|
|
|
|
2019-11-28 17:48:55 +00:00
|
|
|
Build-Docs:
|
|
|
|
docker:
|
|
|
|
- image: circleci/python:3.7
|
|
|
|
steps:
|
|
|
|
- checkout
|
|
|
|
- *make_docs
|
|
|
|
|
2020-01-16 12:22:29 +00:00
|
|
|
Formatting:
|
|
|
|
docker:
|
|
|
|
- image: circleci/python:3.7
|
|
|
|
environment:
|
|
|
|
- TORCH_VERSION: "torch"
|
|
|
|
steps:
|
|
|
|
- checkout
|
|
|
|
- *install_deps
|
|
|
|
- *format
|
|
|
|
|
2019-11-13 11:03:13 +00:00
|
|
|
PyTorch:
|
|
|
|
docker:
|
|
|
|
- image: circleci/python:3.7
|
|
|
|
environment:
|
|
|
|
- TORCH_VERSION: "torch"
|
|
|
|
steps: &steps
|
|
|
|
- checkout
|
|
|
|
|
|
|
|
- *install_deps
|
2020-01-16 12:22:29 +00:00
|
|
|
- *tests
|
2019-11-13 11:03:13 +00:00
|
|
|
|
|
|
|
- store_test_results:
|
|
|
|
path: test-reports
|
|
|
|
- store_artifacts:
|
|
|
|
path: test-reports
|
|
|
|
|
|
|
|
PyTorch-v1.1:
|
|
|
|
docker:
|
|
|
|
- image: circleci/python:3.6
|
|
|
|
environment:
|
|
|
|
- TORCH_VERSION: "torch>=1.1, <1.2"
|
|
|
|
steps: *steps
|
|
|
|
|
|
|
|
PyTorch-v1.2:
|
|
|
|
docker:
|
|
|
|
- image: circleci/python:3.6
|
|
|
|
environment:
|
|
|
|
- TORCH_VERSION: "torch>=1.2, <1.3"
|
|
|
|
steps: *steps
|
|
|
|
|
|
|
|
PyTorch-v1.3:
|
|
|
|
docker:
|
|
|
|
- image: circleci/python:3.6
|
|
|
|
environment:
|
|
|
|
- TORCH_VERSION: "torch>=1.3, <1.4"
|
|
|
|
steps: *steps
|
|
|
|
|
2020-01-16 12:22:29 +00:00
|
|
|
PyTorch-v1.4:
|
|
|
|
docker:
|
|
|
|
- image: circleci/python:3.6
|
|
|
|
environment:
|
|
|
|
- TORCH_VERSION: "torch>=1.4, <1.5"
|
|
|
|
steps: *steps
|
|
|
|
|
2019-11-13 11:03:13 +00:00
|
|
|
workflows:
|
|
|
|
version: 2
|
|
|
|
build:
|
|
|
|
jobs:
|
2020-01-16 12:22:29 +00:00
|
|
|
- Formatting
|
2019-11-28 17:48:55 +00:00
|
|
|
- Build-Docs
|
2019-11-13 11:03:13 +00:00
|
|
|
- PyTorch-v1.1
|
|
|
|
- PyTorch-v1.2
|
|
|
|
- PyTorch-v1.3
|
2020-01-16 12:22:29 +00:00
|
|
|
- PyTorch-v1.4
|