Skip to content

Commit

Permalink
refine ci.
Browse files Browse the repository at this point in the history
  • Loading branch information
ZHUI committed Jun 18, 2024
1 parent 068258b commit 76d51e8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 16 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ name: Pipelines-Test
on:
push:
paths:
- 'pipelines/*'
- 'legacy/pipelines/*'
pull_request:
paths:
- 'pipelines/*'
- 'legacy/pipelines/*'


jobs:
Expand All @@ -20,11 +20,11 @@ jobs:
python-version: '3.10'
cache: 'pip' # caching pip dependencies
- name: Install dependencies
working-directory: ./pipelines
working-directory: ./legacy/pipelines
run: |
python -m pip install --upgrade pip
make install
pip install -r tests/requirements.txt
- name: run the command
working-directory: ./pipelines
working-directory: ./legacy/pipelines
run: make test
12 changes: 0 additions & 12 deletions scripts/regression/run_ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -79,18 +79,6 @@ upload (){
echo -e "\033[35m ---- build ${GIT_PR_ID} paddlenlp \033[0m"
build_pr_path=${nlp_dir}
nlp_build ${build_pr_path}
elif [ $1 == "pipelines" ];then
echo -e "\033[35m ---- build latest pipelines \033[0m"
build_dev_path=/workspace/PaddleNLP_dev/$1
nlp_build ${build_dev_path}
pipe_version=$(python -c "from pipelines import __version__; print(__version__)")
cp $build_dev_path/dist/p****.whl ${PPNLP_HOME}/upload/
elif [ $1 == "ppdiffusers" ];then
echo -e "\033[35m ---- build latest ppdiffusers \033[0m"
build_dev_path=/workspace/PaddleNLP_dev/$1
nlp_build ${build_dev_path}
pipe_version=$(python -c "from ppdiffusers import __version__; print(__version__)")
cp $build_dev_path/dist/pa****.whl ${PPNLP_HOME}/upload/
fi
}
####################################
Expand Down

0 comments on commit 76d51e8

Please sign in to comment.