From 01a2dc96ba751a6ed08e99a8cca6a235c9206cbd Mon Sep 17 00:00:00 2001 From: Yuwen Hu Date: Thu, 8 Sep 2022 13:04:49 +0800 Subject: [PATCH] Style fix: remove extra tabs and add missing comments --- .github/workflows/nano_howto_guides_tests.yml | 49 ++++++++++--------- 1 file changed, 25 insertions(+), 24 deletions(-) diff --git a/.github/workflows/nano_howto_guides_tests.yml b/.github/workflows/nano_howto_guides_tests.yml index aa26f87d251a..f5835fb7f7d1 100644 --- a/.github/workflows/nano_howto_guides_tests.yml +++ b/.github/workflows/nano_howto_guides_tests.yml @@ -1,5 +1,6 @@ name: Nano Unit Tests for How-To Guides Notebooks +# Controls when the workflow will run on: # Triggers the workflow on push or pull request events but only for the main branch push: @@ -38,35 +39,35 @@ jobs: - name: Run unit tests for Inference PyTorch (ONNXRuntime) how-to guides shell: bash run: | - $CONDA/bin/conda create -n howto-guides-inference-pytorch-onnx -y python==3.7.10 setuptools=58.0.4 - source $CONDA/bin/activate howto-guides-inference-pytorch-onnx - $CONDA/bin/conda info - bash python/nano/dev/build_and_install.sh linux default false pytorch - source bigdl-nano-init - pip install pytest nbmake - pip install neural-compressor==1.11.0 - pip install onnx onnxruntime onnxruntime-extensions - bash python/nano/tutorial/notebook/inference/pytorch/run-nano-howto-guides-inference-pytorch-tests.sh onnx - source $CONDA/bin/deactivate - $CONDA/bin/conda remove -n howto-guides-inference-pytorch-onnx --all + $CONDA/bin/conda create -n howto-guides-inference-pytorch-onnx -y python==3.7.10 setuptools=58.0.4 + source $CONDA/bin/activate howto-guides-inference-pytorch-onnx + $CONDA/bin/conda info + bash python/nano/dev/build_and_install.sh linux default false pytorch + source bigdl-nano-init + pip install pytest nbmake + pip install neural-compressor==1.11.0 + pip install onnx onnxruntime onnxruntime-extensions + bash python/nano/tutorial/notebook/inference/pytorch/run-nano-howto-guides-inference-pytorch-tests.sh onnx + source $CONDA/bin/deactivate + $CONDA/bin/conda remove -n howto-guides-inference-pytorch-onnx --all env: - ANALYTICS_ZOO_ROOT: ${{ github.workspace }} + ANALYTICS_ZOO_ROOT: ${{ github.workspace }} - name: Run unit tests for Inference PyTorch (OpenVINO) how-to guides shell: bash run: | - $CONDA/bin/conda create -n howto-guides-inference-pytorch-openvino -y python==3.7.10 setuptools=58.0.4 - source $CONDA/bin/activate howto-guides-inference-pytorch-openvino - $CONDA/bin/conda info - bash python/nano/dev/build_and_install.sh linux default false pytorch - source bigdl-nano-init - pip install pytest nbmake - pip install ipykernel==5.5.6 - pip install openvino-dev - bash python/nano/tutorial/notebook/inference/pytorch/run-nano-howto-guides-inference-pytorch-tests.sh openvino - source $CONDA/bin/deactivate - $CONDA/bin/conda remove -n howto-guides-inference-pytorch-openvino --all + $CONDA/bin/conda create -n howto-guides-inference-pytorch-openvino -y python==3.7.10 setuptools=58.0.4 + source $CONDA/bin/activate howto-guides-inference-pytorch-openvino + $CONDA/bin/conda info + bash python/nano/dev/build_and_install.sh linux default false pytorch + source bigdl-nano-init + pip install pytest nbmake + pip install ipykernel==5.5.6 + pip install openvino-dev + bash python/nano/tutorial/notebook/inference/pytorch/run-nano-howto-guides-inference-pytorch-tests.sh openvino + source $CONDA/bin/deactivate + $CONDA/bin/conda remove -n howto-guides-inference-pytorch-openvino --all env: - ANALYTICS_ZOO_ROOT: ${{ github.workspace }} + ANALYTICS_ZOO_ROOT: ${{ github.workspace }} \ No newline at end of file