Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[CI] add py3 sot ci yaml #70963

Merged
merged 230 commits into from
Feb 19, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
230 commits
Select commit Hold shift + click to select a range
41ccfa1
test=document_fix
swgu98 Jan 23, 2025
80b4203
test=document_fix
swgu98 Jan 23, 2025
7b90074
test=document_fix
swgu98 Jan 23, 2025
e379831
test=document_fix
swgu98 Jan 24, 2025
f602ad1
test=document_fix
swgu98 Jan 24, 2025
36475e9
test=document_fix
swgu98 Jan 24, 2025
ed33496
test=document_fix
swgu98 Jan 24, 2025
70dc68c
test=document_fix
swgu98 Jan 24, 2025
d1f6a9b
test=document_fix
swgu98 Jan 24, 2025
81e2e81
test=document_fix
swgu98 Jan 24, 2025
1ec5aad
test=document_fix
swgu98 Feb 5, 2025
c3ea307
test=document_fix
swgu98 Feb 5, 2025
38e7642
test=document_fix
swgu98 Feb 5, 2025
6aa1657
test=document_fix
swgu98 Feb 5, 2025
60e1b28
test=document_fix
swgu98 Feb 5, 2025
9ec798c
test=document_fix
swgu98 Feb 5, 2025
ee17a4f
test=document_fix
swgu98 Feb 5, 2025
11268cc
test=document_fix
swgu98 Feb 5, 2025
eb92732
test=document_fix
swgu98 Feb 5, 2025
9571965
test=document_fix
swgu98 Feb 5, 2025
9388c8a
test=document_fix
swgu98 Feb 5, 2025
7cae0fe
test=document_fix
swgu98 Feb 5, 2025
a51e86c
test=document_fix
swgu98 Feb 5, 2025
9aaae00
test=document_fix
swgu98 Feb 5, 2025
7a396ed
test=document_fix
swgu98 Feb 5, 2025
2527687
test=document_fix
swgu98 Feb 5, 2025
d05db89
test=document_fix
swgu98 Feb 5, 2025
8cc0c68
test=document_fix
swgu98 Feb 5, 2025
6aa68d5
test=document_fix
swgu98 Feb 5, 2025
58b4bbb
test=document_fix
swgu98 Feb 5, 2025
0140d45
test=document_fix
swgu98 Feb 5, 2025
9550881
test=document_fix
swgu98 Feb 5, 2025
0eba2ad
test=document_fix
swgu98 Feb 5, 2025
632a476
test=document_fix
swgu98 Feb 6, 2025
a6d634c
test=document_fix
swgu98 Feb 6, 2025
714d17c
test=document_fix
swgu98 Feb 6, 2025
6a798fc
2.7
swgu98 Feb 7, 2025
6521b9d
2.7
swgu98 Feb 7, 2025
b07b64e
2.7
swgu98 Feb 7, 2025
fc9999f
2.7
swgu98 Feb 7, 2025
3e42f32
2.7
swgu98 Feb 7, 2025
17faf29
2.7
swgu98 Feb 7, 2025
3b54ede
2.7
swgu98 Feb 7, 2025
9f03c62
2.7
swgu98 Feb 7, 2025
99f0bfa
2.7
swgu98 Feb 7, 2025
6bd3a26
2.7
swgu98 Feb 7, 2025
9c20bcb
2.7
swgu98 Feb 7, 2025
983009d
2.7
swgu98 Feb 7, 2025
679233b
2.7
swgu98 Feb 7, 2025
bf90f69
2.7
swgu98 Feb 7, 2025
0a9821b
2.7
swgu98 Feb 7, 2025
45a02db
2.7
swgu98 Feb 7, 2025
c4cb356
2.7
swgu98 Feb 7, 2025
4c76fb4
2.7
swgu98 Feb 7, 2025
cb0e47e
2.7
swgu98 Feb 7, 2025
8144e59
2.7
swgu98 Feb 7, 2025
196d38a
2.7
swgu98 Feb 7, 2025
9c263ad
2.7
swgu98 Feb 7, 2025
fe22e2a
2.7
swgu98 Feb 7, 2025
861f4ae
2.7
swgu98 Feb 7, 2025
c0b83fa
2.7
swgu98 Feb 7, 2025
aaa3522
2.7
swgu98 Feb 7, 2025
22f79b0
2.7
swgu98 Feb 7, 2025
7294d2a
2.7
swgu98 Feb 7, 2025
0e62874
2.7
swgu98 Feb 7, 2025
9945d1b
2.7
swgu98 Feb 7, 2025
00de94b
2.7
swgu98 Feb 7, 2025
ea2371d
2.7
swgu98 Feb 7, 2025
9c5bcdd
2.7
swgu98 Feb 7, 2025
54d0345
2.7
swgu98 Feb 7, 2025
3ec1c1a
2.7
swgu98 Feb 7, 2025
9310877
2.7
swgu98 Feb 7, 2025
5b3315a
2.7
swgu98 Feb 7, 2025
0142bef
2.7
swgu98 Feb 7, 2025
ad7e059
2.7
swgu98 Feb 7, 2025
4a84d25
2.7
swgu98 Feb 7, 2025
e08182e
2.7
swgu98 Feb 7, 2025
7bafe7e
2.7
swgu98 Feb 7, 2025
4c26673
2.7
swgu98 Feb 7, 2025
d08fce0
2.7
swgu98 Feb 7, 2025
479c6b6
2.7
swgu98 Feb 7, 2025
043cdbd
2.7
swgu98 Feb 7, 2025
a21fd13
2.7
swgu98 Feb 7, 2025
b66cf11
2.7
swgu98 Feb 7, 2025
ae3278b
2.7
swgu98 Feb 7, 2025
5150c9a
2.7
swgu98 Feb 7, 2025
f8477cb
2.8
swgu98 Feb 8, 2025
d3280e8
2.8
swgu98 Feb 8, 2025
0570d24
2.8
swgu98 Feb 8, 2025
9fc538a
2.8
swgu98 Feb 8, 2025
143d0e4
2.8
swgu98 Feb 8, 2025
f61fd38
2.8
swgu98 Feb 8, 2025
848efe8
2.8
swgu98 Feb 8, 2025
3865360
2.8
swgu98 Feb 8, 2025
56ee94f
2.8
swgu98 Feb 8, 2025
6039f8e
2.8
swgu98 Feb 8, 2025
25ca8b8
2.8
swgu98 Feb 8, 2025
11584a5
2.8
swgu98 Feb 8, 2025
c2f366a
2.8
swgu98 Feb 8, 2025
6592ba7
2.8
swgu98 Feb 8, 2025
c94c972
2.8
swgu98 Feb 8, 2025
6525869
2.8
swgu98 Feb 8, 2025
e2b3e8e
2.8
swgu98 Feb 8, 2025
27bf047
2.8
swgu98 Feb 8, 2025
af125dd
2.8
swgu98 Feb 8, 2025
ebb8f0f
2.8
swgu98 Feb 8, 2025
c54661d
2.8
swgu98 Feb 8, 2025
4e59d37
2.8
swgu98 Feb 8, 2025
b35e629
test=document_fix
swgu98 Feb 10, 2025
b8000d3
test=document_fix
swgu98 Feb 10, 2025
3a26235
test=document_fix
swgu98 Feb 10, 2025
31faed5
test=document_fix
swgu98 Feb 10, 2025
b335e52
test=document_fix
swgu98 Feb 10, 2025
3c9da16
test=document_fix
swgu98 Feb 10, 2025
ef5883e
test=document_fix
swgu98 Feb 10, 2025
731c21c
test=document_fix
swgu98 Feb 10, 2025
2d9e23b
test=document_fix
swgu98 Feb 10, 2025
1ef61de
test=document_fix
swgu98 Feb 10, 2025
f487945
test=document_fix
swgu98 Feb 10, 2025
983a5a8
test=document_fix
swgu98 Feb 10, 2025
4086507
test=document_fix
swgu98 Feb 10, 2025
7358e2e
test=document_fix
swgu98 Feb 10, 2025
bfea620
test=document_fix
swgu98 Feb 11, 2025
a72f17d
test=document_fix
swgu98 Feb 11, 2025
a816c35
test=document_fix
swgu98 Feb 11, 2025
5ef210f
test=document_fix
swgu98 Feb 11, 2025
607f8ff
test=document_fix
swgu98 Feb 11, 2025
5986c1e
test=document_fix
swgu98 Feb 11, 2025
a1c53a6
test=document_fix
swgu98 Feb 11, 2025
d7d925e
test=document_fix
swgu98 Feb 11, 2025
138f72f
test=document_fix
swgu98 Feb 11, 2025
eb91fcc
test=document_fix
swgu98 Feb 11, 2025
ba58f3e
test=document_fix
swgu98 Feb 11, 2025
cf14b68
test=document_fix
swgu98 Feb 11, 2025
d67c69c
test=document_fix
swgu98 Feb 11, 2025
1217a22
test=document_fix
swgu98 Feb 11, 2025
609a2b4
test=document_fix
swgu98 Feb 11, 2025
332b3b7
test=document_fix
swgu98 Feb 11, 2025
963eea4
test=document_fix
swgu98 Feb 11, 2025
dec79e6
test=document_fix
swgu98 Feb 11, 2025
ed81045
test=document_fix
swgu98 Feb 11, 2025
80d1d4d
test=document_fix
swgu98 Feb 11, 2025
63dbd95
test=document_fix
swgu98 Feb 12, 2025
94d44d4
test=document_fix
swgu98 Feb 12, 2025
e93db9e
test=document_fix
swgu98 Feb 12, 2025
3f3fd47
test=document_fix
swgu98 Feb 12, 2025
4af2407
test=document_fix
swgu98 Feb 12, 2025
37fc5bb
test=document_fix
swgu98 Feb 12, 2025
e3bf33f
test=document_fix
swgu98 Feb 12, 2025
591b611
test=document_fix
swgu98 Feb 12, 2025
2e250f4
test=document_fix
swgu98 Feb 12, 2025
46f32a1
test=document_fix
swgu98 Feb 12, 2025
347218b
test=document_fix
swgu98 Feb 12, 2025
2e20d1b
test=document_fix
swgu98 Feb 12, 2025
fda6121
test=document_fix
swgu98 Feb 12, 2025
68eb08e
test=document_fix
swgu98 Feb 12, 2025
3f83b30
test=document_fix
swgu98 Feb 12, 2025
e35ae2e
test=document_fix
swgu98 Feb 12, 2025
146d5c0
test=document_fix
swgu98 Feb 12, 2025
4dcf4d3
test=document_fix
swgu98 Feb 12, 2025
9e511ec
test=document_fix
swgu98 Feb 12, 2025
b7e2f3a
test=document_fix
swgu98 Feb 12, 2025
19c37a8
test=document_fix
swgu98 Feb 12, 2025
2d84554
test=document_fix
swgu98 Feb 12, 2025
aae5f54
test=document_fix
swgu98 Feb 12, 2025
87413a6
test=document_fix
swgu98 Feb 12, 2025
288c37b
test=document_fix
swgu98 Feb 12, 2025
808cefd
test=document_fix
swgu98 Feb 12, 2025
2535af3
test=document_fix
swgu98 Feb 12, 2025
2e3699a
test=document_fix
swgu98 Feb 12, 2025
27818f5
test=document_fix
swgu98 Feb 12, 2025
45c83a5
test=document_fix
swgu98 Feb 12, 2025
02fc508
test=document_fix
swgu98 Feb 12, 2025
56ee6eb
test=document_fix
swgu98 Feb 12, 2025
da8afa9
test=document_fix
swgu98 Feb 12, 2025
02e0525
test=document_fix
swgu98 Feb 12, 2025
bd3426c
test=document_fix
swgu98 Feb 12, 2025
e763099
test=document_fix
swgu98 Feb 12, 2025
7aea1b4
test=document_fix
swgu98 Feb 12, 2025
c02746a
test=document_fix
swgu98 Feb 12, 2025
81403d9
test=document_fix
swgu98 Feb 12, 2025
0f09279
test=document_fix
swgu98 Feb 12, 2025
9311604
test=document_fix
swgu98 Feb 12, 2025
f2ffd22
test=document_fix
swgu98 Feb 13, 2025
ec0aec9
test=document_fix
swgu98 Feb 13, 2025
b5b8522
test=document_fix
swgu98 Feb 13, 2025
6699ae5
test=document_fix
swgu98 Feb 13, 2025
bbe172b
test=document_fix
swgu98 Feb 13, 2025
fd81067
test=document_fix
swgu98 Feb 13, 2025
5e9f9dc
test=document_fix
swgu98 Feb 13, 2025
3109d55
test=document_fix
swgu98 Feb 13, 2025
188b9cf
test=document_fix
swgu98 Feb 13, 2025
bdbd3df
test=document_fix
swgu98 Feb 13, 2025
3484d1d
test=document_fix
swgu98 Feb 13, 2025
fd6b01f
test=document_fix
swgu98 Feb 13, 2025
07a3af9
test=document_fix
swgu98 Feb 13, 2025
45cdf21
test=document_fix
swgu98 Feb 13, 2025
69bff54
test=document_fix
swgu98 Feb 17, 2025
0aae745
test=document_fix
swgu98 Feb 17, 2025
df2c57f
test=document_fix
swgu98 Feb 17, 2025
8d7025c
test=document_fix
swgu98 Feb 17, 2025
de8e3b3
test=document_fix
swgu98 Feb 17, 2025
6d52bfa
test=document_fix
swgu98 Feb 17, 2025
552e254
test=document_fix
swgu98 Feb 17, 2025
bf945ee
test=document_fix
swgu98 Feb 17, 2025
61cde87
test=document_fix
swgu98 Feb 17, 2025
b15d609
test=document_fix
swgu98 Feb 17, 2025
973545d
test=document_fix
swgu98 Feb 17, 2025
63c0f2c
test=document_fix
swgu98 Feb 17, 2025
964b0bc
test=document_fix
swgu98 Feb 17, 2025
13ca013
test=document_fix
swgu98 Feb 17, 2025
78a8dab
test=document_fix
swgu98 Feb 17, 2025
575e078
test=document_fix
swgu98 Feb 17, 2025
51a9c70
test=document_fix
swgu98 Feb 17, 2025
696cf75
test=document_fix
swgu98 Feb 17, 2025
b033f00
test=document_fix
swgu98 Feb 17, 2025
415d5cb
test=document_fix
swgu98 Feb 17, 2025
8687a3b
test=document_fix
swgu98 Feb 17, 2025
ccef4c7
test=document_fix
swgu98 Feb 17, 2025
7825ad4
test=document_fix
swgu98 Feb 18, 2025
2d0f167
test=document_fix
swgu98 Feb 18, 2025
7f21a84
test=document_fix
swgu98 Feb 18, 2025
9157d2a
test=document_fix
swgu98 Feb 18, 2025
33baf4b
test=document_fix
swgu98 Feb 18, 2025
a0cf5f4
test=document_fix
swgu98 Feb 18, 2025
5eeabd0
test=document_fix
swgu98 Feb 18, 2025
a08530f
test=document_fix
swgu98 Feb 19, 2025
5e8167c
test=document_fix
swgu98 Feb 19, 2025
0e0eaae
test=document_fix
swgu98 Feb 19, 2025
1d1d391
test=document_fix
swgu98 Feb 19, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: CI

on:
pull_request:
types: [opened, synchronize]

permissions: read-all

concurrency:
group: ${{ github.event.pull_request.number }}
cancel-in-progress: true

env:
PR_ID: ${{ github.event.pull_request.number }}
COMMIT_ID: ${{ github.event.pull_request.head.sha }}
# PR_REF: ${{ github.event.pull_request.head.ref }}

jobs:
Clone:
uses: ./.github/workflows/_Clone-linux.yml

SOT:
uses: ./.github/workflows/_SOT.yml
needs: Clone

Py3:
uses: ./.github/workflows/_Py3.yml
needs: Clone
57 changes: 0 additions & 57 deletions .github/workflows/PR-CI-Clone.yml

This file was deleted.

82 changes: 82 additions & 0 deletions .github/workflows/_Clone-linux.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
name: Clone-linux

on:
workflow_call:

permissions: read-all

defaults:
run:
shell: bash

env:
PR_ID: ${{ github.event.pull_request.number }}
COMMIT_ID: ${{ github.event.pull_request.head.sha }}

jobs:
Clone:
# Don't run on forked repos.
if: github.repository_owner == 'PaddlePaddle'
runs-on:
group: HK-Clone

steps:
- name: Clone paddle
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.base.ref }}
submodules: 'recursive'
fetch-depth: 1000

- name: Merge PR to test branch
run: |
git config --unset http.https://github.com/.extraheader
git submodule foreach --recursive sh -c "git config --local --unset-all 'http.https://github.com/.extraheader'"
git submodule foreach --recursive sh -c "git config remote.origin.fetch '+refs/heads/*:refs/remotes/origin/*'"
git switch develop
set +e
git branch -D test
set -e
git gc
git switch -c test
git config --global user.name "PaddleCI"
git config --global user.email "paddle_ci@example.com"
git fetch origin pull/${{ github.event.pull_request.number }}/head:pr
git merge --no-ff pr
git branch -d pr
bash ${{ github.workspace }}/paddle/scripts/paddle_build/third_party_tag.sh

- name: Download bos client
env:
home_path: "/home/paddle/actions-runner/"
bos_file: "/home/paddle/actions-runner/bos/BosClient.py"
run: |
if [ ! -f "${bos_file}" ]; then
wget -q --no-proxy -O ${home_path}/bos_new.tar.gz https://xly-devops.bj.bcebos.com/home/bos_new.tar.gz --no-check-certificate
mkdir ${home_path}/bos
tar xf ${home_path}/bos_new.tar.gz -C ${home_path}/bos
fi

- name: Push paddle-action.tar.gz to bos
env:
AK: paddle
SK: paddle
bos_file: "/home/paddle/actions-runner/bos/BosClient.py"
run: |
cd ..
tar -zcf Paddle.tar.gz Paddle
echo "::group::Install bce-python-sdk"
python -m pip install bce-python-sdk==0.8.74
echo "::endgroup::"
python ${bos_file} Paddle.tar.gz paddle-github-action/PR/Paddle/${PR_ID}/${COMMIT_ID}
rm Paddle.tar.gz
cd -
git switch develop
git branch -D test
git gc

# - name: Clean environment
# if: always()
# run: |
# cd ${{ github.workspace }}
# rm -rf * .[^.]*
175 changes: 175 additions & 0 deletions .github/workflows/_Py3.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,175 @@
name: PR-CI-Py3

on:
workflow_call:

env:
dockerfile: Dockerfile.cuda9_cudnn7_gcc48_py35_centos6
docker_image: 077ca344c322
PR_ID: ${{ github.event.pull_request.number }}
COMMIT_ID: ${{ github.event.pull_request.head.sha }}
container_name: paddle-CI-${{ github.event.pull_request.number }}-py3

defaults:
run:
shell: bash

jobs:
build-test:
runs-on:
group: GZ_BD-CPU

steps:
- name: Check docker image and run container
env:
BRANCH: develop
work_dir: ${{ github.workspace }}
PADDLE_ROOT: ${{ github.workspace }}
WITH_SHARED_PHI: "ON"
FLAGS_fraction_of_gpu_memory_to_use: 0.15
CTEST_OUTPUT_ON_FAILURE: 1
CTEST_PARALLEL_LEVEL: 2
WITH_GPU: "OFF"
WITH_CACHE: "ON"
WITH_AVX: "OFF"
WITH_MKL: "OFF"
WITH_TESTING: "ON"
WITH_COVERAGE: "OFF"
COVERALLS_UPLOAD: "OFF"
GIT_PR_ID: ${{ github.event.pull_request.number }}
PADDLE_VERSION: 0.0.0
CMAKE_BUILD_TYPE: Release
PADDLE_FRACTION_GPU_MEMORY_TO_USE: 0.15
WITH_DISTRIBUTE: "ON"
RUN_TEST: "ON"
PRECISION_TEST: "OFF"
PREC_SUFFIX: .py3
WITH_UNITY_BUILD: "ON"
TIMEOUT_DEBUG_HEL: "OFF"
PY_VERSION: 3.9
CI_SKIP_CPP_TEST: "OFF"
PROC_RUN: 12
FLAGS_enable_eager_mode: 1
WITH_TENSORRT: "OFF"
WITH_NEWIR: "ON"
GENERATOR: "Ninja"
CCACHE_MAXSIZE: 150G
CCACHE_LIMIT_MULTIPLE: 0.8
run: |
# bash ${{ github.workspace }}/paddle/scripts/paddle_build/check_docker_image.sh
docker run -d -t --name ${container_name} \
-v "/home/data/cfs:/home/data/cfs" \
-v "/home/data/gzcfs:/home/data/gzcfs" \
-v "/dev/shm:/dev/shm" \
-v "${{ github.workspace }}/../../../..:${{ github.workspace }}/../../../.." \
-e BRANCH \
-e PR_ID \
-e COMMIT_ID \
-e work_dir \
-e PADDLE_ROOT \
-e WITH_SHARED_PHI \
-e FLAGS_fraction_of_gpu_memory_to_use \
-e CTEST_OUTPUT_ON_FAILURE \
-e CTEST_PARALLEL_LEVEL \
-e WITH_GPU \
-e WITH_CACHE \
-e WITH_AVX \
-e WITH_MKL \
-e WITH_TESTING \
-e WITH_COVERAGE \
-e COVERALLS_UPLOAD \
-e GIT_PR_ID \
-e PADDLE_VERSION \
-e CMAKE_BUILD_TYPE \
-e PADDLE_FRACTION_GPU_MEMORY_TO_USE \
-e WITH_DISTRIBUTE \
-e RUN_TEST \
-e PRECISION_TEST \
-e PREC_SUFFIX \
-e WITH_UNITY_BUILD \
-e TIMEOUT_DEBUG_HEL \
-e PY_VERSION \
-e CI_SKIP_CPP_TEST \
-e PROC_RUN \
-e FLAGS_enable_eager_mode \
-e WITH_TENSORRT \
-e WITH_NEWIR \
-e GENERATOR \
-e WITH_INFERENCE_API_TEST \
-e CCACHE_MAXSIZE \
-e CCACHE_LIMIT_MULTIPLE \
-e GITHUB_ENV \
-w ${{ github.workspace }} --network host ${docker_image}

- name: Download paddle.tar.gz and merge develop
env:
work_dir: ${{ github.workspace }}
run: |
docker exec -t ${container_name} /bin/bash -c '
rm -rf * .[^.]*
rm -rf /root/.cache && ln -s /home/data/cfs/.cache/python35-cpu /root/.cache
wget -q --no-proxy https://paddle-github-action.bj.bcebos.com/PR/Paddle/${PR_ID}/${COMMIT_ID}/Paddle.tar.gz --no-check-certificate
tar xf Paddle.tar.gz --strip-components=1
bash ${work_dir}/paddle/scripts/paddle_build/config_paddle.sh
. ../../../proxy
git checkout develop
git pull upstream develop
git fetch upstream develop
git checkout test
git merge --no-edit develop
'

- name: Configure cache and ccache
env:
work_dir: ${{ github.workspace }}
run: |
docker exec -t ${container_name} /bin/bash -c 'bash ${work_dir}/paddle/scripts/paddle_build/config_cfs.sh py3 ${{ github.env }}'

- name: Build
env:
work_dir: ${{ github.workspace }}
run: |
docker exec -t ${container_name} /bin/bash -c '
export CACHE_DIR=${{ env.CACHE_DIR }}
export CCACHE_DIR=${{ env.CCACHE_DIR }}
. ../../../proxy
bash ${work_dir}/paddle/scripts/paddle_build/run_setup.sh ${PYTHON_ABI:-""} bdist_wheel ${parallel_number:-""} py3
'

- name: Test
env:
work_dir: ${{ github.workspace }}
run: |
docker exec -t ${container_name} /bin/bash -c '
. ../../../proxy
bash ${work_dir}/paddle/scripts/paddle_build/run_linux_cpu_test.sh
source paddle/scripts/paddle_build/utils.sh; clean_build_files
echo "::group::Install bce-python-sdk"
python -m pip install bce-python-sdk==0.8.74
echo "::endgroup::"
'

- name: Upload paddle_whl
env:
home_path: ${{ github.workspace }}/..
bos_file: ${{ github.workspace }}/../bos/BosClient.py
paddle_whl: paddlepaddle-0.0.0-cp39-cp39-linux_x86_64.whl
run: |
docker exec -t ${container_name} /bin/bash -c '
export AK=paddle
export SK=paddle
if [ ! -f "${{ env.bos_file }}" ]; then
wget -q --no-proxy -O ${{ env.home_path }}/bos_new.tar.gz https://xly-devops.bj.bcebos.com/home/bos_new.tar.gz --no-check-certificate
mkdir ${{ env.home_path }}/bos
tar xf ${{ env.home_path }}/bos_new.tar.gz -C ${{ env.home_path }}/bos
fi
cd ${{ github.workspace }}/dist
python3.9 ${{ env.bos_file }} ${{ env.paddle_whl }} paddle-github-action/PR/cpu_whl/${{ env.PR_ID }}/${{ env.COMMIT_ID }}
'

- name: Terminate and delete the container
if: always()
run: |
docker exec -t ${container_name} /bin/bash -c 'rm -rf * .[^.]*'
docker stop ${container_name}
docker rm ${container_name}
Loading
Loading