From 3cb40f82bcb2514c9a077bf9c038b7cfbe4ffb6f Mon Sep 17 00:00:00 2001 From: chenjuntao <2498530516@qq.com> Date: Wed, 6 Dec 2023 08:20:31 +0000 Subject: [PATCH] test ci_ascend --- .github/workflows/_runs-on-ascend.yml | 75 +++++++++++++++++++-------- 1 file changed, 52 insertions(+), 23 deletions(-) diff --git a/.github/workflows/_runs-on-ascend.yml b/.github/workflows/_runs-on-ascend.yml index 5b541262f..6b14d155f 100644 --- a/.github/workflows/_runs-on-ascend.yml +++ b/.github/workflows/_runs-on-ascend.yml @@ -14,6 +14,48 @@ on: required: false default: "tps-ascend-ci" +# jobs: +# checkout_code: +# name: checkout code +# runs-on: ${{ inputs.runner }} +# steps: +# - name: Checkout Code +# uses: DeepLink-org/deeplink.framework/.github/actions/checkout-code@main + +# build: +# runs-on: ${{ inputs.runner }} +# needs: checkout_code +# steps: +# - name: build on ascend +# uses: DeepLink-org/deeplink.framework/.github/actions/code-build-test@main +# with: +# build_shell: " +# source dicp/scripts/ci/ascend/ci_ascend_build_env.sh && \ +# pip uninstall torch_dipu -y && \ +# pip uninstall dicp -y && \ +# cd dipu && python setup.py install --user && \ +# cd ../dicp && python setup.py install --user +# " +# job_name: "build" +# cover_job: "0" +# cleaner: "clean_all_if_error" + +# test: +# runs-on: ${{ inputs.runner }} +# needs: build +# steps: +# - name: rt test on ascend +# uses: DeepLink-org/deeplink.framework/.github/actions/code-build-test@main +# with: +# build_shell: " +# cd .. && source dicp/scripts/ci/ascend/ci_ascend_test_env.sh /mnt/models/llama_models && \ +# export TEST_DIR=$(pwd)/dicp/test && echo ${TEST_DIR} && \ +# bash ${TEST_DIR}/ascend_scripts/ops/run_test_ops.sh false && \ +# bash ${TEST_DIR}/ascend_scripts/models/run_test_models.sh false +# " +# job_name: "test" +# cover_job: "1" + jobs: checkout_code: name: checkout code @@ -22,11 +64,11 @@ jobs: - name: Checkout Code uses: DeepLink-org/deeplink.framework/.github/actions/checkout-code@main - build: + build_test: runs-on: ${{ inputs.runner }} needs: checkout_code steps: - - name: build on ascend + - name: build and test on ascendrider uses: DeepLink-org/deeplink.framework/.github/actions/code-build-test@main with: build_shell: " @@ -34,24 +76,11 @@ jobs: pip uninstall torch_dipu -y && \ pip uninstall dicp -y && \ cd dipu && python setup.py install --user && \ - cd ../dicp && python setup.py install --user - " - job_name: "build" - cover_job: "0" - cleaner: "clean_all_if_error" - - test: - runs-on: ${{ inputs.runner }} - needs: build - steps: - - name: rt test on ascend - uses: DeepLink-org/deeplink.framework/.github/actions/code-build-test@main - with: - build_shell: " - cd .. && source dicp/scripts/ci/ascend/ci_ascend_test_env.sh /mnt/models/llama_models && \ - export TEST_DIR=$(pwd)/dicp/test && echo ${TEST_DIR} && \ - bash ${TEST_DIR}/ascend_scripts/ops/run_test_ops.sh false && \ - bash ${TEST_DIR}/ascend_scripts/models/run_test_models.sh false - " - job_name: "test" - cover_job: "1" + cd ../dicp && python setup.py install --user && \ + cd .. && source dicp/scripts/ci/ascend/ci_ascend_test_env.sh /mnt/models/llama_models && \ + export TEST_DIR=$(pwd)/dicp/test && echo ${TEST_DIR} && \ + bash ${TEST_DIR}/ascend_scripts/ops/run_test_ops.sh false && \ + bash ${TEST_DIR}/ascend_scripts/models/run_test_models.sh false + " + job_name: "build_test" + cover_job: "0" \ No newline at end of file