Skip to content

Commit

Permalink
modify smoke test pip cli sp linux
Browse files Browse the repository at this point in the history
  • Loading branch information
Xiang Wang authored and Xiang Wang committed Jun 12, 2024
1 parent 008266f commit e25ad75
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 19 deletions.
15 changes: 5 additions & 10 deletions .github/workflows/smoke_test_pip_cli_sp_linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,21 +54,16 @@ jobs:
echo ${{ steps.extract_branch.outputs.branch }}
if [[ ${{ steps.extract_branch.outputs.branch }} == "master" ]]; then
echo "running on master"
path=/home/actions-runner/fedml-master
path=/home/fedml/FedML
cd $path
git pull
echo "dir=$path" >> $GITHUB_OUTPUT
else
echo "running on dev"
root_path=/home/fedml
cd $root_path
# 检查目标目录是否存在
if [ -d "FedML" ]; then
git pull
git checkout dev/v0.7.0
fi
git clone -b dev/v0.7.0 --single-branch https://github.com/Qigemingziba/FedML.git
cd FedML
path=/home/fedml/FedML
cd $path
git pull
git checkout ${{ steps.extract_branch.outputs.branch }}
echo "dir=$path" >> $GITHUB_OUTPUT
fi
- name: sync git repo to local pip
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ RUN git clone https://github.com/Qigemingziba/FedML.git
#USER docker
# RUN cd FedML/python && pip install -i https://pypi.tuna.tsinghua.edu.cn/simple -e ./ --use-deprecated=legacy-resolver

ENV REPO=Qigemingziba/FedML ACCESS_TOKEN=AGMK3P54EHEPHNRPWRQ3IJLGNARAS
ENV REPO=Qigemingziba/FedML ACCESS_TOKEN=AGMK3P6YMJOZV4VKATVVRWDGNETGW
# set the entrypoint to the start.sh script
CMD ./start.sh ${REPO} ${ACCESS_TOKEN}

6 changes: 6 additions & 0 deletions devops/dockerfile/github-action-runner/build_light.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# --exclude='path/to/excluded/dir'
# git clone https://github.com/Qigemingziba/FedML.git
# git checkout dev/v0.7.0
docker login
docker build -t fedml/github-action-runner_wx:test -f ./DockerfileLight .
docker run --rm fedml/github-action-runner_wx:test
7 changes: 0 additions & 7 deletions devops/dockerfile/github-action-runner/build_wx_test.sh

This file was deleted.

0 comments on commit e25ad75

Please sign in to comment.