-
Notifications
You must be signed in to change notification settings - Fork 534
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: cfujitsang <cfujitsang@nvidia.com>
- Loading branch information
Showing
586 changed files
with
24,064 additions
and
264,844 deletions.
There are no files selected for viewing
This file contains 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 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,203 +1,20 @@ | ||
# Byte-compiled / optimized / DLL files | ||
__pycache__/ | ||
*.py[cod] | ||
*$py.class | ||
|
||
# C extensions | ||
*.so | ||
|
||
# Distribution / packaging | ||
.Python | ||
build/ | ||
develop-eggs/ | ||
dist/ | ||
downloads/ | ||
eggs/ | ||
.eggs/ | ||
lib/ | ||
lib64/ | ||
parts/ | ||
sdist/ | ||
var/ | ||
wheels/ | ||
pip-wheel-metadata/ | ||
share/python-wheels/ | ||
*.egg-info/ | ||
.installed.cfg | ||
*.egg | ||
MANIFEST | ||
|
||
# PyInstaller | ||
# Usually these files are written by a python script from a template | ||
# before PyInstaller builds the exe, so as to inject date/other infos into it. | ||
*.manifest | ||
*.spec | ||
|
||
# Installer logs | ||
pip-log.txt | ||
pip-delete-this-directory.txt | ||
|
||
# Unit test / coverage reports | ||
htmlcov/ | ||
.tox/ | ||
.nox/ | ||
.coverage | ||
.coverage.* | ||
.cache | ||
nosetests.xml | ||
coverage.xml | ||
*.cover | ||
.hypothesis/ | ||
.pytest_cache/ | ||
|
||
# Translations | ||
*.mo | ||
*.pot | ||
|
||
# Django stuff: | ||
*.log | ||
local_settings.py | ||
db.sqlite3 | ||
db.sqlite3-journal | ||
|
||
# Flask stuff: | ||
instance/ | ||
.webassets-cache | ||
|
||
# Scrapy stuff: | ||
.scrapy | ||
|
||
# Sphinx documentation | ||
docs/_build/ | ||
|
||
# PyBuilder | ||
target/ | ||
|
||
# Jupyter Notebook | ||
.ipynb_checkpoints | ||
|
||
# IPython | ||
profile_default/ | ||
ipython_config.py | ||
|
||
# pyenv | ||
.python-version | ||
|
||
# pipenv | ||
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control. | ||
# However, in case of collaboration, if having platform-specific dependencies or dependencies | ||
# having no cross-platform support, pipenv may install dependencies that don't work, or not | ||
# install all needed dependencies. | ||
#Pipfile.lock | ||
|
||
# celery beat schedule file | ||
celerybeat-schedule | ||
|
||
# SageMath parsed files | ||
*.sage.py | ||
|
||
# Environments | ||
.env | ||
.venv | ||
env/ | ||
venv/ | ||
ENV/ | ||
env.bak/ | ||
venv.bak/ | ||
|
||
# Spyder project settings | ||
.spyderproject | ||
.spyproject | ||
artifacts | ||
cuda_*.exe | ||
miniconda3.exe | ||
vs_buildtools.exe | ||
|
||
# Rope project settings | ||
.ropeproject | ||
|
||
# mkdocs documentation | ||
/site | ||
# all folders starting with _ are local | ||
_*/ | ||
|
||
# mypy | ||
.mypy_cache/ | ||
.dmypy.json | ||
dmypy.json | ||
|
||
# Pyre type checker | ||
.pyre/ | ||
|
||
|
||
# sphinx build folder | ||
_build | ||
|
||
# Compiled source # | ||
################### | ||
*.com | ||
*.class | ||
*.dll | ||
*.exe | ||
*.o | ||
# generated folders | ||
kaolin/version.py | ||
build/ | ||
kaolin.egg-info | ||
*.so | ||
|
||
# Packages # | ||
############ | ||
# it's better to unpack these files and commit the raw source | ||
# git has its own built in compression methods | ||
*.7z | ||
*.dmg | ||
*.gz | ||
*.iso | ||
*.jar | ||
*.rar | ||
*.tar | ||
*.zip | ||
|
||
# Logs and databases # | ||
###################### | ||
*.log | ||
*.sql | ||
*.sqlite | ||
|
||
# OS generated files # | ||
###################### | ||
.DS_Store? | ||
ehthumbs.db | ||
Icon? | ||
Thumbs.db | ||
|
||
# Editor backup files # | ||
####################### | ||
*~ | ||
|
||
|
||
###### | ||
# Docs | ||
###### | ||
|
||
docs/_build | ||
|
||
|
||
# # Datasets directory, possibly generated by tests | ||
# datasets/ | ||
|
||
# Test generated files (dataloader tests create temporary dirs) | ||
tests/datasets_eval/ | ||
|
||
tests/visualize/results/ | ||
|
||
# Default data directory | ||
data/ | ||
|
||
# 'public' directory, where docs are hosted as a gitlab page | ||
public/ | ||
|
||
# previous code versions | ||
*_old* | ||
|
||
# vscode | ||
**/.vscode/** | ||
|
||
# Results directory for examples | ||
examples/renderers/DIB-R/results/ | ||
examples/renderers/NMR/results/ | ||
# byte-compiled python files | ||
*.py[cod] | ||
|
||
# example outputs | ||
cache/ | ||
log/ | ||
# pip cache | ||
.cache |
This file contains 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,39 +1,84 @@ | ||
image: "pytorch/pytorch:1.2-cuda10.0-cudnn7-devel" | ||
|
||
before_script: | ||
- pip install --upgrade pip>=18.0.0 | ||
- pip install flake8==3.7.9 \ | ||
flake8-bugbear==20.1.4 \ | ||
flake8-comprehensions==3.2.2 \ | ||
flake8-mypy==17.8.0 \ | ||
flake8-pyi==19.3.0 \ | ||
pytest==5.4.2 \ | ||
pytest-cov==2.8.1 | ||
- pip install --no-dependencies -r requirements.txt | ||
- apt-get update && apt-get -y install libglib2.0-0 # needed by opencv | ||
|
||
stages: | ||
- build | ||
- test | ||
|
||
build general: | ||
tags: | ||
- kaolin | ||
# ---- | ||
|
||
build linux: | ||
tags: [kaolin] | ||
stage: build | ||
image: "docker:19.03.9" | ||
before_script: | ||
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY | ||
script: | ||
- ci/build-linux.sh | ||
artifacts: | ||
name: "kaolin-$CI_JOB_NAME-$CI_COMMIT_REF_SLUG-$CI_COMMIT_SHORT_SHA" | ||
paths: ['artifacts/'] | ||
when: always | ||
|
||
build windows: | ||
tags: [kaolin_windows] | ||
stage: build | ||
script: | ||
- ci\build-windows.ps1 | ||
artifacts: | ||
name: "kaolin-$CI_JOB_NAME-$CI_COMMIT_REF_SLUG-$CI_COMMIT_SHORT_SHA" | ||
paths: ['artifacts/'] | ||
when: always | ||
|
||
build linux no cache: | ||
when: manual | ||
tags: [kaolin] | ||
stage: build | ||
image: "docker:19.03.9" | ||
before_script: | ||
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY | ||
script: | ||
- ci/build-linux-no-cache.sh | ||
artifacts: | ||
name: "kaolin-$CI_JOB_NAME-$CI_COMMIT_REF_SLUG-$CI_COMMIT_SHORT_SHA" | ||
paths: ['artifacts/'] | ||
when: always | ||
|
||
build windows no cache: | ||
when: manual | ||
tags: [kaolin_windows] | ||
stage: build | ||
script: | ||
- python setup.py build_ext --inplace -j$(nproc --all) | ||
- python setup.py install | ||
- python -c 'import kaolin; print(kaolin.__version__)' | ||
- ci\build-windows-no-cache.ps1 | ||
artifacts: | ||
name: "kaolin-$CI_JOB_NAME-$CI_COMMIT_REF_SLUG-$CI_COMMIT_SHORT_SHA" | ||
paths: ['artifacts/'] | ||
when: always | ||
|
||
|
||
# ---- | ||
|
||
flake8 linux: | ||
tags: [kaolin] | ||
stage: test | ||
needs: ['build linux'] | ||
image: "docker:19.03.0" | ||
before_script: | ||
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY | ||
script: | ||
- ci/flake8-linux.sh | ||
|
||
full test: | ||
tags: | ||
- kaolin | ||
pytest linux: | ||
tags: [kaolin] | ||
stage: test | ||
needs: ['build linux'] | ||
image: "docker:19.03.9" | ||
before_script: | ||
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY | ||
script: | ||
- flake8 --config=.flake8 . | ||
- source setenv.sh | ||
- python setup.py develop | ||
- pytest --cov=kaolin/ tests/ | ||
- tests/examples/run/test_classification.sh | ||
- tests/examples/run/test_nmr.sh | ||
- tests/examples/run/test_softras_examples.sh | ||
- ci/pytest-linux.sh | ||
|
||
test windows: | ||
tags: [kaolin_windows] | ||
stage: test | ||
needs: ['build windows'] | ||
script: | ||
- ci\test-windows.bat | ||
|
Oops, something went wrong.