Zgc/ditorch support overflow apply to third party interface #300
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: runs on camb | |
on: | |
workflow_dispatch: | |
inputs: | |
run_test_use_pytorch: | |
description: 'Run Test_use_pytorch job' | |
required: false | |
default: 'false' | |
push: | |
branches: | |
- main | |
tags: | |
- 'v*' | |
pull_request: | |
env: | |
DEEPLINK_PATH: '/mnt/cache/share/deeplinkci/github/${{ github.repository }}' | |
concurrency: | |
group: camb-${{ github.head_ref || github.ref }} | |
cancel-in-progress: true | |
jobs: | |
checkout_code: | |
name: checkout code | |
runs-on: tps-camb-ci | |
steps: | |
- name: Checkout Code | |
uses: DeepLink-org/ditorch/.github/actions/checkout-code@main | |
Build: | |
name: build on camb | |
runs-on: tps-camb-ci | |
needs: [checkout_code] | |
steps: | |
- name: build | |
run: | | |
set -ex | |
cd ${DEEPLINK_PATH}/${GITHUB_RUN_NUMBER} && rm -rf ${GITHUB_JOB} && cp -R source ${GITHUB_JOB} && cd ${GITHUB_JOB} | |
echo "start to build" | |
Test: | |
name: test on camb | |
runs-on: tps-camb-ci | |
needs: [Build] | |
steps: | |
- name: test | |
run: | | |
set -ex | |
cd ${DEEPLINK_PATH}/${GITHUB_RUN_NUMBER} && rm -rf ${GITHUB_JOB} && cp -R Build ${GITHUB_JOB} && cd ${GITHUB_JOB} | |
echo "start to test" | |
source /mnt/cache/share/platform/env/ditorch_env | |
export PYTHONPATH=${PYTHONPATH}:$PWD | |
srun -p camb_mlu370_m8 -n 1 --gres=mlu:1 bash ci/run_op_tools_test_cases.sh | |
Test_use_pytorch_test_case: | |
name: run pytorch test case on camb | |
runs-on: tps-camb-ci | |
if: ${{ github.event.inputs.run_test_use_pytorch == 'true' }} | |
needs: [Build] | |
steps: | |
- name: test | |
run: | | |
set -ex | |
cd ${DEEPLINK_PATH}/${GITHUB_RUN_NUMBER} && rm -rf ${GITHUB_JOB} && cp -R Build ${GITHUB_JOB} && cd ${GITHUB_JOB} | |
echo "start to test" | |
source /mnt/cache/share/platform/env/ditorch_env | |
export PYTHONPATH=${PYTHONPATH}:$PWD | |
srun -p camb_mlu370_m8 -n 1 --gres=mlu:1 bash ci/run_pytorch_test_cases.sh |