Skip to content
Permalink
Browse files

Config pre-commit and unit test for elasticdl_preprocessing (#1847)

  • Loading branch information
workingloong committed Mar 17, 2020
1 parent 0093018 commit fbfc0e3ccdb1d5b3bda354187ca01e6cdd5381f4
@@ -28,7 +28,7 @@ jobs:
name: "Pre-commit Check"
script:
- docker build --target dev -t elasticdl:dev -f elasticdl/docker/Dockerfile .
- 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' ' ')"
- 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' ' ')"
- stage: tests
name: "Tests"
script:
No changes.
No changes.
@@ -9,5 +9,5 @@ go test -v -cover ./...
popd

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

0 comments on commit fbfc0e3

Please sign in to comment.
You can’t perform that action at this time.