-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Extend CI #44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Extend CI #44
Changes from all commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
5d307e0
use tox
Borda 627ac0b
fix tests req.
Borda b4a1786
add Codecov
Borda 7bf7af5
rename LICENSE
Borda 34f0044
update README
Borda 79f0856
update setup
Borda 0bfc99a
fix MANIFEST
Borda 50cca25
add missing req.
Borda eacd93e
fix rltv imports
Borda c44966a
apply PEP8
Borda 7781497
fix tests
Borda a8f07ad
MIT -> apache 2 license
williamFalcon 632d07b
fix prints for py3.5
Borda 4e0b9c5
add CircleCI
Borda d9bfe96
update by flake8
Borda f8a79b3
fix imports in examples
Borda 715be66
drop CircleCI
Borda a1bb623
review changes #44
Borda b2d1a24
Update .codecov.yml
williamFalcon 97a9a0f
Update trainer.py
williamFalcon b75ee7f
Update tox.ini
williamFalcon 421c4fa
fix appveyor - install pytorch
Borda a25429b
Update README.md
williamFalcon 86a90bf
update codecov
Borda 883af6e
Merge branch 'extend-CI' of https://github.com/Borda/pytorch-lightnin…
Borda File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
#see https://github.com/codecov/support/wiki/Codecov-Yaml | ||
codecov: | ||
notify: | ||
require_ci_to_pass: yes | ||
|
||
coverage: | ||
precision: 0 # 2 = xx.xx%, 0 = xx% | ||
round: nearest # how coverage is rounded: down/up/nearest | ||
range: 40...100 # custom range of coverage colors from red -> yellow -> green | ||
status: | ||
# https://codecov.readme.io/v1.0/docs/commit-status | ||
project: | ||
default: | ||
against: auto | ||
target: 99% # specify the target coverage for each commit status | ||
threshold: 20% # allow this little decrease on project | ||
# https://github.com/codecov/support/wiki/Filtering-Branches | ||
# branches: master | ||
if_ci_failed: error | ||
# https://github.com/codecov/support/wiki/Patch-Status | ||
patch: | ||
default: | ||
against: auto | ||
target: 40% # specify the target "X%" coverage to hit | ||
# threshold: 50% # allow this much decrease on patch | ||
changes: false | ||
|
||
parsers: | ||
gcov: | ||
branch_detection: | ||
conditional: true | ||
loop: true | ||
macro: false | ||
method: false | ||
javascript: | ||
enable_partials: false | ||
|
||
comment: | ||
layout: header, diff | ||
require_changes: false | ||
behavior: default # update if exists else create new | ||
# branches: * |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,46 @@ | ||
# vim ft=yaml | ||
|
||
# After changing this file, check it on: | ||
# http://yaml-online-parser.appspot.com/ | ||
|
||
# See doc/travis_notes.txt for some guidelines | ||
|
||
# this file is *not* meant to cover or endorse the use of travis, but rather to | ||
# help confirm pull requests to this project. | ||
|
||
dist: xenial # Ubuntu 16.04 | ||
|
||
env: | ||
global: | ||
- DISPLAY="" | ||
|
||
language: python | ||
python: | ||
- "3.7" | ||
# command to install dependencies | ||
|
||
matrix: | ||
include: | ||
- python: 3.6 | ||
env: TOXENV=py36 | ||
- python: 3.7 | ||
env: TOXENV=py37 | ||
|
||
# See http://docs.travis-ci.com/user/caching/#pip-cache | ||
cache: pip | ||
|
||
install: | ||
- pip install -e . | ||
- pip install -r requirements.txt | ||
- pip install -r tests/requirements.txt | ||
- pip install -U numpy | ||
- pip install -r ./tests/requirements.txt | ||
- pip --version ; pip list | ||
|
||
# keep build from timing out | ||
dist: xenial | ||
|
||
# command to run tests | ||
script: | ||
- py.test -v # or py.test for Python versions 3.5 and below | ||
# integration | ||
- tox --sitepackages | ||
- python setup.py install --dry-run | ||
|
||
after_success: | ||
- coverage report | ||
Borda marked this conversation as resolved.
Show resolved
Hide resolved
|
||
# disable auto coverage bc it isn't accurate since it misses gpu code. | ||
# to get coverage, run local and push results | ||
# - codecov | ||
|
||
notifications: | ||
email: false |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,36 @@ | ||
graft docs | ||
# Manifest syntax https://docs.python.org/2/distutils/sourcedist.html | ||
graft wheelhouse | ||
|
||
include COPYING | ||
include AUTHORS | ||
recursive-include birl *.py | ||
recursive-exclude __pycache__ *.py[cod] *.orig | ||
|
||
recursive-include src/einsteinpy/tests *.py *.html | ||
# Include the README | ||
include *.md | ||
|
||
prune docs/source/examples/.ipynb_checkpoints | ||
global-exclude *.py[cod] __pycache__ *.so *.dylib | ||
# Include the license file | ||
include LICENSE | ||
|
||
exclude *.sh | ||
exclude *.toml | ||
recursive-include examples *.py | ||
recursive-include pytorch_lightning *.py | ||
|
||
# exclude tests from package | ||
recursive-exclude tests * | ||
exclude tests | ||
|
||
# Exclude the documentation files | ||
recursive-exclude docs * | ||
exclude docs | ||
|
||
# Include the Requirements | ||
include requirements.txt | ||
|
||
# Exclude build configs | ||
exclude *.yml | ||
|
||
prune .git | ||
prune .github | ||
prune notebook* | ||
prune temp* | ||
prune test* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
# https://www.appveyor.com/docs/appveyor-yml/ | ||
environment: | ||
|
||
# SDK v7.0 MSVC Express 2008's SetEnv.cmd script will fail if the | ||
# /E:ON and /V:ON options are not enabled in the batch script interpreter | ||
# See: http://stackoverflow.com/a/13751649/163740 | ||
CMD_IN_ENV: "cmd /E:ON /V:ON /C obvci_appveyor_python_build_env.cmd" | ||
|
||
matrix: | ||
# Pre-installed Python versions, which Appveyor may upgrade to | ||
# a later point release. | ||
# See: http://www.appveyor.com/docs/installed-software#python | ||
|
||
|
||
# - PYTHON: "C:\\Python35-x64" | ||
# PYTHON_VERSION: "3.5.x" | ||
# PYTHON_ARCH: "64" | ||
# TOXENV: "py35" | ||
|
||
- PYTHON: "C:\\Python36-x64" | ||
PYTHON_VERSION: "3.6.x" | ||
PYTHON_ARCH: "64" | ||
TOXENV: "py36" | ||
PIP_PYVER: "36" | ||
|
||
- PYTHON: "C:\\Python37-x64" | ||
PYTHON_VERSION: "3.7.x" | ||
PYTHON_ARCH: "64" | ||
TOXENV: "py37" | ||
PIP_PYVER: "37" | ||
|
||
build: off | ||
|
||
# https://www.appveyor.com/docs/build-cache/ | ||
cache: | ||
- C:\ProgramData\chocolatey\bin -> appveyor.yml | ||
- C:\ProgramData\chocolatey\lib -> appveyor.yml | ||
- '%LOCALAPPDATA%\pip\Cache -> appveyor.yml' | ||
|
||
# scripts that run after cloning repository | ||
install: | ||
# If there is a newer build queued for the same PR, cancel this one. | ||
# The AppVeyor 'rollout builds' option is supposed to serve the same | ||
# purpose but it is problematic because it tends to cancel builds pushed | ||
# directly to master instead of just PR builds (or the converse). | ||
- SET PATH=%PYTHON%;%PYTHON%\\Scripts;%path% | ||
- pip install -U --user pip | ||
- pip install "https://download.pytorch.org/whl/cu90/torch-1.1.0-cp%PIP_PYVER%-cp%PIP_PYVER%m-win_amd%PYTHON_ARCH%.whl" | ||
pip install "https://download.pytorch.org/whl/cu90/torchvision-0.3.0-cp%PIP_PYVER%-cp%PIP_PYVER%m-win_amd%PYTHON_ARCH%.whl" | ||
- pip install -r requirements.txt | ||
- pip install -r ./tests/requirements.txt | ||
|
||
# scripts to run before tests (working directory and environment changes are persisted from the previous steps such as "before_build") | ||
before_test: | ||
- python --version | ||
- pip --version | ||
- pip list | ||
- dir | ||
|
||
# to run your custom scripts instead of automatic tests | ||
test_script: | ||
- tox --sitepackages --parallel auto | ||
|
||
on_success: | ||
- coverage report | ||
# - codecov |
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,5 @@ | ||
from .new_project_templates.lightning_module_template import LightningTemplateModel | ||
from .new_project_templates.lightning_module_template import LightningTemplateModel | ||
|
||
__all__ = [ | ||
'LightningTemplateModel' | ||
] |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.