Fixed the issue where autocompare reports input is modified in situat… #288
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 nv | |
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: nv-${{ github.head_ref || github.ref }} | |
cancel-in-progress: true | |
jobs: | |
checkout_code: | |
name: checkout code | |
runs-on: tps-sco-ci | |
steps: | |
- name: Checkout Code | |
uses: DeepLink-org/ditorch/.github/actions/checkout-code@main | |
Build: | |
name: build on nv | |
runs-on: tps-sco-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 nv | |
runs-on: tps-sco-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" | |
srun --job-name=${GITHUB_JOB} bash -c "source /mnt/cache/share/platform/env/ditorch_env && cd ${DEEPLINK_PATH}/${GITHUB_RUN_NUMBER}/${GITHUB_JOB} && export PYTHONPATH=${PYTHONPATH}:$PWD && bash ci/run_op_tools_test_cases.sh" | |
Test_use_pytorch_test_case: | |
name: run pytorch test case on nv | |
runs-on: tps-sco-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" | |
srun --job-name=${GITHUB_JOB} bash -c "source /mnt/cache/share/platform/env/ditorch_env && cd ${DEEPLINK_PATH}/${GITHUB_RUN_NUMBER}/${GITHUB_JOB} && export PYTHONPATH=${PYTHONPATH}:$PWD && bash ci/run_pytorch_test_cases.sh" | |