Skip to content

Commit fbfc0e3

Browse files
authored
Config pre-commit and unit test for elasticdl_preprocessing (#1847)
1 parent 0093018 commit fbfc0e3

File tree

4 files changed

+2
-2
lines changed

4 files changed

+2
-2
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
name: "Pre-commit Check"
2929
script:
3030
- docker build --target dev -t elasticdl:dev -f elasticdl/docker/Dockerfile .
31-
- docker run --rm -it -v $PWD:/work -w /work elasticdl:dev bash -c "pre-commit run --files $(find elasticdl/python model_zoo setup.py scripts/ -name '*.py' -print0 | tr '\0' ' ') $(find elasticdl/pkg -name '*.go' -print0 | tr '\0' ' ')"
31+
- docker run --rm -it -v $PWD:/work -w /work elasticdl:dev bash -c "pre-commit run --files $(find elasticdl/python elasticdl_preprocessing model_zoo setup.py scripts/ -name '*.py' -print0 | tr '\0' ' ') $(find elasticdl/pkg -name '*.go' -print0 | tr '\0' ' ')"
3232
- stage: tests
3333
name: "Tests"
3434
script:

elasticdl_preprocessing/layers/__init__.py

Whitespace-only changes.

elasticdl_preprocessing/tests/__init__.py

Whitespace-only changes.

scripts/unittest.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@ go test -v -cover ./...
99
popd
1010

1111
# Python unittests
12-
K8S_TESTS=True pytest elasticdl/python/tests --cov=elasticdl/python --cov-report=xml
12+
K8S_TESTS=True pytest elasticdl/python/tests elasticdl_preprocessing/tests --cov=elasticdl/python --cov-report=xml
1313
mv coverage.xml shared

0 commit comments

Comments
 (0)