Skip to content

Commit f257c59

Browse files
committed
set proxy
1 parent 8aaa799 commit f257c59

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/ci-paddle.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,12 @@ jobs:
3232
WITH_AVX: "ON"
3333
PY_VERSION: "3.10"
3434
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
35+
no_proxy: "bcebos.com,apiin.im.baidu.com,gitee.com,aliyun.com,.baidu.com,.tuna.tsinghua.edu.cn"
3536
run: |
3637
docker_image=ccr-2vdh3abv-pub.cnc.bj.baidubce.com/paddlepaddle/paddle:cuda129-coverage-test
3738
docker run -d -t --gpus all --name ${{ env.container_name }} \
3839
-v "/dev/shm:/dev/shm" \
40+
-v ${{ github.workspace }}/../../..:${{ github.workspace }}/../../.. \
3941
-v ${{ github.workspace }}:/workspace \
4042
-e FLAGS_fraction_of_gpu_memory_to_use \
4143
-e CTEST_PARALLEL_LEVEL \
@@ -44,6 +46,7 @@ jobs:
4446
-e WITH_AVX \
4547
-e PY_VERSION \
4648
-e GITHUB_TOKEN \
49+
-e no_proxy \
4750
-w /workspace \
4851
--network host \
4952
${docker_image}
@@ -52,6 +55,7 @@ jobs:
5255
run: |
5356
docker exec -t ${{ env.container_name }} /bin/bash -c '
5457
set -e
58+
source ${{ github.workspace }}/../../../proxy
5559
git config --global --add safe.directory "*"
5660
# Clean workspace
5761
find . -maxdepth 1 ! -name "." -exec rm -rf {} +
@@ -67,6 +71,7 @@ jobs:
6771
run: |
6872
docker exec -t ${{ env.container_name }} /bin/bash -c '
6973
set -e
74+
source ${{ github.workspace }}/../../../proxy
7075
pip install -r requirements-test.txt
7176
pip install -e .
7277
'

0 commit comments

Comments
 (0)