Skip to content

Commit

Permalink
CI:add build and test bash script for ascend in dicp
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinfromTJ committed Dec 6, 2023
1 parent c0701ff commit 759abe7
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions .github/workflows/_runs-on-ascend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,13 @@ jobs:
- name: build on ascend
uses: DeepLink-org/deeplink.framework/.github/actions/code-build-test@main
with:
build_shell: "pwd" #Write the script you want to execute here,If you don't know which parameters to fill in, you can refer to the actions/code-build-test
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"
Expand All @@ -41,6 +47,11 @@ jobs:
- name: rt test on ascend
uses: DeepLink-org/deeplink.framework/.github/actions/code-build-test@main
with:
build_shell: "pwd" #Write the script you want to execute here,If you don't know which parameters to fill in, you can refer to the actions/code-build-test
job_name: "build"
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"

0 comments on commit 759abe7

Please sign in to comment.