|
1 |
| -# Note: |
2 |
| -# Same runner only needs one job named like .*fetch-and-rebase |
3 |
| - |
4 | 1 | name: Ascend NPU Test Suite
|
5 | 2 |
|
6 | 3 | on:
|
|
36 | 33 | - ascendai/cann:7.1-openeuler2203sp2
|
37 | 34 | - ascendai/cann:8.0.rc2.alpha003-910b-ubuntu22.04-py3.9
|
38 | 35 | - ascendai/cann:8.0.rc3.alpha002-910b-ubuntu22.04-py3.9
|
39 |
| - default: 'ascendai/cann:8.0.rc3.alpha002-910b-ubuntu22.04-py3.9' |
| 36 | + - latest |
| 37 | + default: 'latest' |
40 | 38 | description: 'The docker image which will be loaded'
|
41 | 39 | device:
|
42 | 40 | required: true
|
@@ -73,52 +71,37 @@ jobs:
|
73 | 71 | set -e
|
74 | 72 | echo "runner=${{ github.event.inputs.runner || 'self-hosted' }}" >> $GITHUB_OUTPUT
|
75 | 73 | echo "device=${{ github.event.inputs.device || '/dev/davinci6' }}" >> $GITHUB_OUTPUT
|
76 |
| - echo "image=${{ github.event.inputs.image || 'ascendai/cann:8.0.rc3.alpha002-910b-ubuntu22.04-py3.9' }}" >> $GITHUB_OUTPUT |
77 |
| -
|
78 |
| - # TODO(shink): remove this job, use actions/checkout instead |
79 |
| - fetch-and-rebase: |
80 |
| - name: Fetch and rebase |
81 |
| - runs-on: ${{ needs.prepare.outputs.runner }} |
82 |
| - needs: |
83 |
| - - prepare |
84 |
| - steps: |
85 |
| - - name: Pull latest codes for torch_npu |
86 |
| - uses: ./.github/actions/fetch-and-rebase |
87 |
| - with: |
88 |
| - repo_path: /home/runner/actions-runner/codes/npu/pytorch |
89 |
| - remote_branch: upstream/master |
90 |
| - loop: 10 |
| 74 | + echo "image=${{ github.event.inputs.image || 'latest' }}" >> $GITHUB_OUTPUT |
91 | 75 |
|
92 | 76 | build:
|
93 | 77 | name: Build torch_npu
|
94 | 78 | needs:
|
95 | 79 | - prepare
|
96 |
| - - fetch-and-rebase |
97 | 80 | uses: ./.github/workflows/_ascend_npu_build.yml
|
98 | 81 | with:
|
99 | 82 | runner: ${{ needs.prepare.outputs.runner }}
|
100 | 83 | image: ${{ needs.prepare.outputs.image }}
|
101 | 84 |
|
102 |
| - test: |
103 |
| - name: Test torch_npu |
104 |
| - needs: |
105 |
| - - prepare |
106 |
| - - build |
107 |
| - uses: ./.github/workflows/_ascend_npu_test.yml |
108 |
| - with: |
109 |
| - runner: ${{ needs.prepare.outputs.runner }} |
110 |
| - image: ${{ needs.prepare.outputs.image }} |
111 |
| - device: ${{ needs.prepare.outputs.device }} |
112 |
| - artifact_name: ${{ needs.build.outputs.artifact_name }} |
113 |
| - |
114 |
| - pytorch-examples: |
115 |
| - name: Run models |
116 |
| - needs: |
117 |
| - - prepare |
118 |
| - - test |
119 |
| - uses: ./.github/workflows/_ascend_npu_run_pytorch_examples.yml |
120 |
| - with: |
121 |
| - runner: ${{ needs.prepare.outputs.runner }} |
122 |
| - image: ${{ needs.prepare.outputs.image }} |
123 |
| - device: ${{ needs.prepare.outputs.device }} |
124 |
| - artifact_name: ${{ needs.build.outputs.artifact_name }} |
| 85 | +# test: |
| 86 | +# name: Test torch_npu |
| 87 | +# needs: |
| 88 | +# - prepare |
| 89 | +# - build |
| 90 | +# uses: ./.github/workflows/_ascend_npu_test.yml |
| 91 | +# with: |
| 92 | +# runner: ${{ needs.prepare.outputs.runner }} |
| 93 | +# image: ${{ needs.prepare.outputs.image }} |
| 94 | +# device: ${{ needs.prepare.outputs.device }} |
| 95 | +# artifact_name: ${{ needs.build.outputs.artifact_name }} |
| 96 | +# |
| 97 | +# pytorch-examples: |
| 98 | +# name: Run models |
| 99 | +# needs: |
| 100 | +# - prepare |
| 101 | +# - test |
| 102 | +# uses: ./.github/workflows/_ascend_npu_run_pytorch_examples.yml |
| 103 | +# with: |
| 104 | +# runner: ${{ needs.prepare.outputs.runner }} |
| 105 | +# image: ${{ needs.prepare.outputs.image }} |
| 106 | +# device: ${{ needs.prepare.outputs.device }} |
| 107 | +# artifact_name: ${{ needs.build.outputs.artifact_name }} |
0 commit comments