Skip to content

Commit

Permalink
fix error
Browse files Browse the repository at this point in the history
  • Loading branch information
lvhan028 committed Jun 24, 2022
1 parent 9b49915 commit 4f28322
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions .circleci/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -157,28 +157,29 @@ jobs:
- run:
name: Build MMDeploy
command: |
docker run --gpus all -t -d -v /home/circleci/project/mmdeploy/:/mmdeploy -w /mmdeploy --name mmdeploy mmdeploy:gpu
docker exec mmdeploy .circleci/scripts/linux/build.sh cuda trt -Dpplcv_DIR=/workspace/ppl.cv/cuda-build/install/lib/cmake/ppl
docker run --gpus all -t -d -v /home/circleci/project/:/project -w /project --name mmdeploy mmdeploy:gpu
docker exec mmdeploy bash mmdeploy/.circleci/scripts/linux/build.sh cuda trt -Dpplcv_DIR=/workspace/ppl.cv/cuda-build/install/lib/cmake/ppl
- run:
name: Install MMDeploy
command: docker exec pip install -v -e .
# https://stackoverflow.com/questions/28037802/docker-exec-failed-cd-executable-file-not-found-in-path
command: |
docker exec -i mmdeploy bash -c "cd mmdeploy && pip install -v -e ."
- run:
name: Install requirements
command: |
docker exec mmdeploy pip install -r requirements/codebases.txt
docker exec mmdeploy pip install -r requirements/tests.txt
docker exec mmdeploy pip install -r requirements/runtime.txt
docker exec mmdeploy pip install onnxruntime==1.8.1
docker exec mmdeploy pip install -r mmdeploy/requirements/codebases.txt
docker exec mmdeploy pip install -r mmdeploy/requirements/tests.txt
docker exec mmdeploy pip install -r mmdeploy/requirements/runtime.txt
docker exec mmdeploy pip install -U numpy
- run:
name: Perform Model Converter unittests
command: |
docker exec mmdeploy coverage run --branch --source mmdeploy -m pytest -rsE tests
docker exec mmdeploy coverage xml
docker exec mmdeploy coverage report -m
docker exec -i mmdeploy bash -c "cd mmdeploy && coverage run --branch --source mmdeploy -m pytest -rsE tests && coverage xml && coverage report -m"
- run:
name: Run SDK unittests
command: |
docker exec mmdeploy bash mmdeploy/.circleci/scripts/run_unittests.sh
docker exec mmdeploy ./mmdeploy/build/bin/mmdeploy_tests
test_windows_onnxruntime:
parameters:
Expand Down

0 comments on commit 4f28322

Please sign in to comment.