forked from NVIDIA/modulus-launch
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
66 lines (54 loc) · 1.76 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
install:
pip install --upgrade pip && \
pip install -e .
get-data:
mkdir /data && \
mkdir /data/nfs/ && \
git clone https://gitlab-master.nvidia.com/modulus/modulus-data.git /data/nfs/modulus-data
black:
black --check --exclude=docs/ ./
interrogate:
cd modulus/launch && \
interrogate --ignore-init-method \
--ignore-init-module \
--ignore-module \
--ignore-private \
--ignore-semiprivate \
--ignore-magic \
--fail-under 20 \
--exclude ["internal"] \
--ignore-regex forward \
--ignore-regex reset_parameters \
--ignore-regex extra_repr \
--ignore-regex MetaData \
--ignore-regex apply_activation \
--ignore-regex exec_activation \
-vv \
--color \
. && \
cd ../../
license:
python test/ci_tests/header_check.py
doctest:
coverage run \
--rcfile='test/coverage.docstring.rc' \
-m pytest \
--doctest-modules modulus/launch/ --ignore-glob=*internal*
pytest:
coverage run \
--rcfile='test/coverage.pytest.rc' \
-m pytest
pytest-internal:
cd test/internal && \
pytest && \
cd ../../
coverage:
coverage combine && \
coverage report --show-missing --omit=*test* --omit=*internal* --fail-under=20 && \
coverage html
container-deploy:
docker build --build-arg BASE_CONTAINER=modulus:deploy -t modulus-launch:deploy --target deploy -f Dockerfile .
container-ci:
docker build -t modulus-launch:ci --target ci -f Dockerfile .
container-docs:
docker build -t modulus-launch:docs --target docs -f Dockerfile .