Skip to content

Commit ab298ca

Browse files
committed
Add checkout step.
1 parent 69eaec8 commit ab298ca

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

.github/workflows/Validate-GPU.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,20 @@ jobs:
2626
runs-on:
2727
group: BD_BJ-V100
2828
steps:
29+
- name: Clone GraphNet
30+
uses: actions/checkout@v4
31+
with:
32+
ref: ${{ github.event.pull_request.base.ref }}
33+
submodules: 'recursive'
34+
fetch-depth: 100
35+
2936
- name: Check docker image and run container
3037
env:
3138
work_dir: ${{ github.workspace }}
3239
CACHE_DIR: /home/data/cfs/.cache
3340
run: |
3441
container_name=${TASK}-${core_index}-$(date +%Y%m%d-%H%M%S)
3542
echo "container_name=${container_name}" >> ${{ github.env }}
36-
ls ${{ github.workspace }}
3743
docker container ls -a --filter "name=GraphNet-CI-*-Validate-${core_index}*" --format "{{.ID}}" | xargs -r docker rm -f
3844
docker run -d -t --gpus all --name ${container_name} --shm-size=128g \
3945
-v "/home/data/cfs:/home/data/cfs" \
@@ -62,9 +68,6 @@ jobs:
6268
docker exec -t ${{ env.container_name }} /bin/bash -c '
6369
source ${{ github.workspace }}/../../../proxy
6470
git config --global --add safe.directory ${work_dir}
65-
pwd
66-
ls /graphnet
67-
ls ${work_dir}
6871
bash ${work_dir}/tools/ci/check_validate.sh
6972
'
7073

0 commit comments

Comments
 (0)