Skip to content

Commit 44ff97e

Browse files
authored
Initial commit
0 parents  commit 44ff97e

14 files changed

Lines changed: 867 additions & 0 deletions

.github/workflows/ci-testing.yml

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
name: CI testing
2+
3+
# see: https://help.github.com/en/actions/reference/events-that-trigger-workflows
4+
on:
5+
# Trigger the workflow on push or pull request, but only for the master branch
6+
push:
7+
branches:
8+
- master
9+
pull_request:
10+
branches:
11+
- master
12+
13+
jobs:
14+
pytest:
15+
16+
runs-on: ${{ matrix.os }}
17+
strategy:
18+
fail-fast: false
19+
matrix:
20+
os: [ubuntu-20.04, macOS-10.15, windows-2019]
21+
python-version: [3.7]
22+
23+
# Timeout: https://stackoverflow.com/a/59076067/4521646
24+
timeout-minutes: 35
25+
26+
steps:
27+
- uses: actions/checkout@v2
28+
- name: Set up Python ${{ matrix.python-version }}
29+
uses: actions/setup-python@v2
30+
with:
31+
python-version: ${{ matrix.python-version }}
32+
33+
# Github Actions: Run step on specific OS: https://stackoverflow.com/a/57948488/4521646
34+
- name: Setup macOS
35+
if: runner.os == 'macOS'
36+
run: |
37+
brew install libomp # https://github.com/pytorch/pytorch/issues/20030
38+
39+
# Note: This uses an internal pip API and may not always work
40+
# https://github.com/actions/cache/blob/master/examples.md#multiple-oss-in-a-workflow
41+
- name: Get pip cache
42+
id: pip-cache
43+
run: |
44+
python -c "from pip._internal.locations import USER_CACHE_DIR; print('::set-output name=dir::' + USER_CACHE_DIR)"
45+
46+
- name: Cache pip
47+
uses: actions/cache@v2
48+
with:
49+
path: ${{ steps.pip-cache.outputs.dir }}
50+
key: ${{ runner.os }}-py${{ matrix.python-version }}-${{ hashFiles('requirements.txt') }}
51+
restore-keys: |
52+
${{ runner.os }}-py${{ matrix.python-version }}-
53+
54+
- name: Install dependencies
55+
run: |
56+
pip install --requirement requirements.txt --upgrade --quiet --find-links https://download.pytorch.org/whl/cpu/torch_stable.html --use-feature=2020-resolver
57+
pip install --requirement tests/requirements.txt --quiet --use-feature=2020-resolver
58+
python --version
59+
pip --version
60+
pip list
61+
shell: bash
62+
63+
- name: Tests
64+
run: |
65+
coverage run --source project -m py.test project tests -v --junitxml=junit/test-results-${{ runner.os }}-${{ matrix.python-version }}.xml
66+
67+
- name: Statistics
68+
if: success()
69+
run: |
70+
coverage report

.gitignore

Lines changed: 129 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,129 @@
1+
# Byte-compiled / optimized / DLL files
2+
__pycache__/
3+
*.py[cod]
4+
*$py.class
5+
.github
6+
7+
# C extensions
8+
*.so
9+
10+
# Distribution / packaging
11+
.Python
12+
build/
13+
develop-eggs/
14+
dist/
15+
downloads/
16+
eggs/
17+
.eggs/
18+
lib/
19+
lib64/
20+
parts/
21+
sdist/
22+
var/
23+
wheels/
24+
*.egg-info/
25+
.installed.cfg
26+
*.egg
27+
MANIFEST
28+
29+
# Lightning /research
30+
test_tube_exp/
31+
tests/tests_tt_dir/
32+
tests/save_dir
33+
default/
34+
data/
35+
test_tube_logs/
36+
test_tube_data/
37+
datasets/
38+
model_weights/
39+
tests/save_dir
40+
tests/tests_tt_dir/
41+
processed/
42+
raw/
43+
44+
# PyInstaller
45+
# Usually these files are written by a python script from a template
46+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
47+
*.manifest
48+
*.spec
49+
50+
# Installer logs
51+
pip-log.txt
52+
pip-delete-this-directory.txt
53+
54+
# Unit test / coverage reports
55+
htmlcov/
56+
.tox/
57+
.coverage
58+
.coverage.*
59+
.cache
60+
nosetests.xml
61+
coverage.xml
62+
*.cover
63+
.hypothesis/
64+
.pytest_cache/
65+
66+
# Translations
67+
*.mo
68+
*.pot
69+
70+
# Django stuff:
71+
*.log
72+
local_settings.py
73+
db.sqlite3
74+
75+
# Flask stuff:
76+
instance/
77+
.webassets-cache
78+
79+
# Scrapy stuff:
80+
.scrapy
81+
82+
# Sphinx documentation
83+
docs/_build/
84+
85+
# PyBuilder
86+
target/
87+
88+
# Jupyter Notebook
89+
.ipynb_checkpoints
90+
91+
# pyenv
92+
.python-version
93+
94+
# celery beat schedule file
95+
celerybeat-schedule
96+
97+
# SageMath parsed files
98+
*.sage.py
99+
100+
# Environments
101+
.env
102+
.venv
103+
env/
104+
venv/
105+
ENV/
106+
env.bak/
107+
venv.bak/
108+
109+
# Spyder project settings
110+
.spyderproject
111+
.spyproject
112+
113+
# Rope project settings
114+
.ropeproject
115+
116+
# mkdocs documentation
117+
/site
118+
119+
# mypy
120+
.mypy_cache/
121+
122+
# IDEs
123+
.idea
124+
.vscode
125+
126+
# seed project
127+
lightning_logs/
128+
MNIST
129+
.DS_Store

0 commit comments

Comments
 (0)