diff --git a/.github/workflows/metax_work.yaml b/.github/workflows/metax_work.yaml index bdedcaa7c8..353cbb098b 100644 --- a/.github/workflows/metax_work.yaml +++ b/.github/workflows/metax_work.yaml @@ -28,22 +28,38 @@ jobs: --jobs=8 \ --branch ${{ github.base_ref || github.ref_name}} \ --recurse-submodules \ - https://${{ github.actor }}:${{ secrets.GITHUB_TOKEN }}@github.com/PaddlePaddle/PaddleCustomDevice.git . + https://${{ github.actor }}:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git . if [ "${{ github.event_name }}" == "pull_request" ]; then git fetch origin pull/${{ github.event.pull_request.number }}/head:pull/${{ github.event.pull_request.number }}/head git checkout pull/${{ github.event.pull_request.number }}/head + + + paddle_branch=${{ github.base_ref || github.ref_name}} + echo $paddle_branch + # sleep 10000 change_numbers=$(git diff --name-only remotes/origin/${paddle_branch} | wc -l) - change_backend=$(git diff --name-only remotes/origin/${paddle_branch} | grep "backends/"| wc -l) - change_metax_only=$(git diff --name-only remotes/origin/${paddle_branch} | grep "backends/metax_gpu"| wc -l) + echo $change_numbers + + + change_backend=$(git diff --name-only remotes/origin/${paddle_branch} | grep -c "backends/" || true) + echo $change_backend + change_metax_only=$(git diff --name-only remotes/origin/${paddle_branch} | grep -c "backends/metax_gpu" || true) + echo $change_metax_only + + # change_backend=$(git diff --name-only remotes/origin/${paddle_branch} | grep "backends/"| wc -l) + # echo $change_backend + # change_metax_only=$(git diff --name-only remotes/origin/${paddle_branch} | grep "backends/metax_gpu"| wc -l) + # echo $change_metax_only + git diff --name-only remotes/origin/${paddle_branch} if [ $change_numbers -ne $change_backend ]; then echo "Common file changed, continue to run metax FULL CI test ..." elif [ $paddle_branch -eq 0 ] ; then - echo "NO metax backend changes found, skip metax FULL CI ...." + echo "NO metax backend changes found, skip metax FULL CI ....." exit 0 fi @@ -59,6 +75,7 @@ jobs: bash build.sh - name: run test + run: | cd backends/metax_gpu/tests bash run_test.sh -j 16