Skip to content

Commit 7aeb0e7

Browse files
committed
Fix git config.
1 parent fa337f8 commit 7aeb0e7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/Validate-GPU.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,6 @@ jobs:
8181
run: |
8282
docker exec -t ${{ env.container_name }} /bin/bash -c '
8383
source ${{ github.workspace }}/../../../proxy
84-
git config --global --add safe.directory ${work_dir}
8584
bash ${work_dir}/tools/ci/check_validate.sh
8685
'
8786

tools/ci/check_validate.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ export PYTHONPATH=${GRAPH_NET_EXTRACT_WORKSPACE}:$PYTHONPATH
1414
[ -z "$CUDA_VISIBLE_DEVICES" ] && CUDA_VISIBLE_DEVICES="0"
1515

1616
function prepare_env() {
17+
git config --global --add safe.directory "*"
1718
num_changed_samples=$(git diff --name-only develop | grep -E "samples/(.*\.py|.*\.json)" | wc -l)
1819
if [ ${num_changed_samples} -eq 0 ]; then
1920
LOG "[INFO] This pull request doesn't change any samples, skip the CI."
@@ -44,7 +45,7 @@ function check_validation() {
4445
for model_path in ${MODIFIED_MODEL_PATHS[@]}
4546
do
4647
python -m graph_net.torch.validate --model-path ${GRAPH_NET_EXTRACT_WORKSPACE}/${model_path} >&2
47-
[ $? -ne 0 ] && fail_name[${#fail_name[@]}]="${model_path}(Run on ${device_type})"
48+
[ $? -ne 0 ] && fail_name[${#fail_name[@]}]="${model_path}"
4849
done
4950
if [ ${#fail_name[@]} -ne 0 ]
5051
then

0 commit comments

Comments
 (0)