Skip to content

Commit

Permalink
test ci_ascend
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinfromTJ committed Dec 6, 2023
1 parent 5317622 commit 3cb40f8
Showing 1 changed file with 52 additions and 23 deletions.
75 changes: 52 additions & 23 deletions .github/workflows/_runs-on-ascend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -22,36 +64,23 @@ 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: "
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"
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"

0 comments on commit 3cb40f8

Please sign in to comment.