Skip to content

Commit

Permalink
change git fetch
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 3fbaaee commit c20dd77
Show file tree
Hide file tree
Showing 16 changed files with 93 additions and 45 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/pylint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,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"
path=/home/actions-runner/fedml-dev
path=/home/fedml/FedML
cd $path
git pull
git checkout ${{ steps.extract_branch.outputs.branch }}
echo "dir=$path" >> $GITHUB_OUTPUT
fi
- name: Analysing the code with pylint
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,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"
path=/home/actions-runner/fedml-dev
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 All @@ -67,7 +70,7 @@ jobs:
homepath=${{ format('{0}', steps.fedml_source_code_home.outputs.dir) }}
echo $Homepath
cd $homepath
bash ./devops/scripts/sync-fedml-pip.sh
# bash ./devops/scripts/sync-fedml-pip.sh
- name: Install MNN
working-directory: ${{ steps.fedml_source_code_home.outputs.dir }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,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"
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
9 changes: 6 additions & 3 deletions .github/workflows/smoke_test_cross_silo_fedavg_cdp_linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,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"
path=/home/actions-runner/fedml-dev
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 All @@ -68,7 +71,7 @@ jobs:
homepath=${{ format('{0}', steps.fedml_source_code_home.outputs.dir) }}
echo $Homepath
cd $homepath
bash ./devops/scripts/sync-fedml-pip.sh
# bash ./devops/scripts/sync-fedml-pip.sh
- name: server - cross-silo - cdp
working-directory: ${{ steps.fedml_source_code_home.outputs.dir }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,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"
path=/home/actions-runner/fedml-dev
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 All @@ -68,7 +71,7 @@ jobs:
homepath=${{ format('{0}', steps.fedml_source_code_home.outputs.dir) }}
echo $Homepath
cd $homepath
bash ./devops/scripts/sync-fedml-pip.sh
# bash ./devops/scripts/sync-fedml-pip.sh
- name: server - cross-silo - defense
working-directory: ${{ steps.fedml_source_code_home.outputs.dir }}
Expand Down
9 changes: 6 additions & 3 deletions .github/workflows/smoke_test_cross_silo_fedavg_ldp_linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,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"
path=/home/actions-runner/fedml-dev
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 All @@ -68,7 +71,7 @@ jobs:
homepath=${{ format('{0}', steps.fedml_source_code_home.outputs.dir) }}
echo $Homepath
cd $homepath
bash ./devops/scripts/sync-fedml-pip.sh
# bash ./devops/scripts/sync-fedml-pip.sh
- name: server - cross-silo - ldp
working-directory: ${{ steps.fedml_source_code_home.outputs.dir }}
Expand Down
9 changes: 6 additions & 3 deletions .github/workflows/smoke_test_cross_silo_ho_linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,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"
path=/home/actions-runner/fedml-dev
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 All @@ -68,7 +71,7 @@ jobs:
homepath=${{ format('{0}', steps.fedml_source_code_home.outputs.dir) }}
echo $Homepath
cd $homepath
bash ./devops/scripts/sync-fedml-pip.sh
# bash ./devops/scripts/sync-fedml-pip.sh
- name: server - cross-silo - ho
working-directory: ${{ steps.fedml_source_code_home.outputs.dir }}
Expand Down
9 changes: 6 additions & 3 deletions .github/workflows/smoke_test_cross_silo_ho_win.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,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"
path=/home/actions-runner/fedml-dev
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 All @@ -67,7 +70,7 @@ jobs:
homepath=${{ format('{0}', steps.fedml_source_code_home.outputs.dir) }}
echo $Homepath
cd $homepath
bash ./devops/scripts/sync-fedml-pip.sh
# bash ./devops/scripts/sync-fedml-pip.sh
- name: server - cross-silo - ho
working-directory: ${{ steps.fedml_source_code_home.outputs.dir }}
Expand Down
9 changes: 6 additions & 3 deletions .github/workflows/smoke_test_cross_silo_lightsecagg_linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,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"
path=/home/actions-runner/fedml-dev
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 All @@ -68,7 +71,7 @@ jobs:
homepath=${{ format('{0}', steps.fedml_source_code_home.outputs.dir) }}
echo $Homepath
cd $homepath
bash ./devops/scripts/sync-fedml-pip.sh
# bash ./devops/scripts/sync-fedml-pip.sh
- name: server - cross-silo - lightsecagg
working-directory: ${{ steps.fedml_source_code_home.outputs.dir }}
Expand Down
9 changes: 6 additions & 3 deletions .github/workflows/smoke_test_cross_silo_lightsecagg_win.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,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"
path=/home/actions-runner/fedml-dev
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 All @@ -67,7 +70,7 @@ jobs:
homepath=${{ format('{0}', steps.fedml_source_code_home.outputs.dir) }}
echo $Homepath
cd $homepath
bash ./devops/scripts/sync-fedml-pip.sh
# bash ./devops/scripts/sync-fedml-pip.sh
- name: server - cross-silo - ho
working-directory: ${{ steps.fedml_source_code_home.outputs.dir }}
Expand Down
9 changes: 6 additions & 3 deletions .github/workflows/smoke_test_flow_linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,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"
path=/home/actions-runner/fedml-dev
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 All @@ -58,7 +61,7 @@ jobs:
homepath=${{ format('{0}', steps.fedml_source_code_home.outputs.dir) }}
echo $Homepath
cd $homepath
bash ./devops/scripts/sync-fedml-pip.sh
# bash ./devops/scripts/sync-fedml-pip.sh
- name: server - Flow
working-directory: ${{ steps.fedml_source_code_home.outputs.dir }}
Expand Down
9 changes: 6 additions & 3 deletions .github/workflows/smoke_test_ml_engines_linux_jax.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,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"
path=/home/actions-runner/fedml-dev
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 All @@ -68,7 +71,7 @@ jobs:
homepath=${{ format('{0}', steps.fedml_source_code_home.outputs.dir) }}
echo $Homepath
cd $homepath
bash ./devops/scripts/sync-fedml-pip.sh
# bash ./devops/scripts/sync-fedml-pip.sh
cd $homepath/python
- name: server - jax - fedavg
Expand Down
9 changes: 6 additions & 3 deletions .github/workflows/smoke_test_ml_engines_linux_mxnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,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"
path=/home/actions-runner/fedml-dev
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 All @@ -68,7 +71,7 @@ jobs:
homepath=${{ format('{0}', steps.fedml_source_code_home.outputs.dir) }}
echo $Homepath
cd $homepath
bash ./devops/scripts/sync-fedml-pip.sh
# bash ./devops/scripts/sync-fedml-pip.sh
cd $homepath/python
pip install mxnet==2.0.0b1
Expand Down
9 changes: 6 additions & 3 deletions .github/workflows/smoke_test_ml_engines_linux_tf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,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"
path=/home/actions-runner/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 All @@ -68,7 +71,7 @@ jobs:
homepath=${{ format('{0}', steps.fedml_source_code_home.outputs.dir) }}
echo $Homepath
cd $homepath
bash ./devops/scripts/sync-fedml-pip.sh
# bash ./devops/scripts/sync-fedml-pip.sh
cd $homepath/python
- name: server - tensorflow - fedavg
Expand Down
Loading

0 comments on commit c20dd77

Please sign in to comment.