Skip to content

Commit

Permalink
Merge pull request #2 from Qigemingziba/test_pr
Browse files Browse the repository at this point in the history
add some file
  • Loading branch information
xiang-wang-innovator authored Jun 17, 2024
2 parents 41ea04a + 07f6616 commit 4bbce76
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 157 deletions.
36 changes: 5 additions & 31 deletions .github/workflows/CI_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,43 +27,17 @@ jobs:

timeout-minutes: 5
steps:
- name: Extract branch name
shell: bash
run: echo "branch=$(echo ${GITHUB_REF#refs/heads/})" >>$GITHUB_OUTPUT
id: extract_branch
- id: fedml_source_code_home
name: cd to master or dev branch and git pull
shell: bash
run: |
ls
echo ${{ steps.extract_branch.outputs.branch }}
if [[ ${{ steps.extract_branch.outputs.branch }} == "master" ]]; then
echo "running on 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: install_test
working-directory: ${{ steps.fedml_source_code_home.outputs.dir }}
- name: Checkout fedml
uses: actions/checkout@v3

- name: pip_install
run: |
homepath=${{ format('{0}', steps.fedml_source_code_home.outputs.dir) }}
echo $Homepath
cd $homepath
cd python
pip install -e ./
- name: pylint
working-directory: ${{ steps.fedml_source_code_home.outputs.dir }}
run: |
cd python
echo "Pylint has been run successfully!
echo "Pylint has been run successfully!"
# pip install mnn==1.1.6
38 changes: 4 additions & 34 deletions .github/workflows/CI_federate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,6 @@ on:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
federate:
# defaults:
# run:
# shell: bash
# working-directory: python
strategy:
fail-fast: false
matrix:
Expand All @@ -31,41 +27,15 @@ jobs:
runs-on: ${{ matrix.python-version }}
timeout-minutes: 5
steps:
- name: Extract branch name
shell: bash
run: echo "branch=$(echo ${GITHUB_REF#refs/heads/})" >>$GITHUB_OUTPUT
id: extract_branch
- id: fedml_source_code_home
name: cd to master or dev branch and git pull
shell: bash
- name: Checkout fedml
uses: actions/checkout@v3

- name: pip_install
run: |
ls
echo ${{ steps.extract_branch.outputs.branch }}
if [[ ${{ steps.extract_branch.outputs.branch }} == "master" ]]; then
echo "running on 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
working-directory: ${{ steps.fedml_source_code_home.outputs.dir }}
run: |
homepath=${{ format('{0}', steps.fedml_source_code_home.outputs.dir) }}
echo $Homepath
cd $homepath
cd python
pip install -e ./
- name: federate_job_in_test_env
working-directory: ${{ steps.fedml_source_code_home.outputs.dir }}
run: |
cd python
echo "Federate example has been tested successfully!"
38 changes: 6 additions & 32 deletions .github/workflows/CI_launch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,46 +23,20 @@ jobs:
matrix:
os: [ ubuntu-latest ]
arch: [X64]
python-version: ['3.8','3.9','3.10','3.11']
python-version: ['python3.8','python3.9','python3.10','python3.11']

runs-on: [ self-hosted, Linux ]
runs-on: ${{ matrix.python-version }}
timeout-minutes: 5
steps:
- name: Extract branch name
shell: bash
run: echo "branch=$(echo ${GITHUB_REF#refs/heads/})" >>$GITHUB_OUTPUT
id: extract_branch
- id: fedml_source_code_home
name: cd to master or dev branch and git pull
shell: bash
run: |
ls
echo ${{ steps.extract_branch.outputs.branch }}
if [[ ${{ steps.extract_branch.outputs.branch }} == "master" ]]; then
echo "running on 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: install
working-directory: ${{ steps.fedml_source_code_home.outputs.dir }}
- name: Checkout fedml
uses: actions/checkout@v3

- name: pip_install
run: |
homepath=${{ format('{0}', steps.fedml_source_code_home.outputs.dir) }}
echo $Homepath
cd $homepath
cd python
pip install -e ./
- name: launch_job_in_test_env
working-directory: ${{ steps.fedml_source_code_home.outputs.dir }}
run: |
cd python
echo "Launch example has been tested successfully!"
Expand Down
34 changes: 4 additions & 30 deletions .github/workflows/CI_serving.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,41 +26,15 @@ jobs:
python-version: ['python3.8', 'python3.9', 'python3.10', 'python3.11']

steps:
- name: Extract branch name
shell: bash
run: echo "branch=$(echo ${GITHUB_REF#refs/heads/})" >>$GITHUB_OUTPUT
id: extract_branch
- id: fedml_source_code_home
name: cd to master or dev branch and git pull
shell: bash
run: |
ls
echo ${{ steps.extract_branch.outputs.branch }}
if [[ ${{ steps.extract_branch.outputs.branch }} == "master" ]]; then
echo "running on 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
working-directory: ${{ steps.fedml_source_code_home.outputs.dir }}
- name: Checkout fedml
uses: actions/checkout@v3

- name: pip_install
run: |
homepath=${{ format('{0}', steps.fedml_source_code_home.outputs.dir) }}
echo $Homepath
cd $homepath
cd python
pip install -e ./
- name: serving_job_in_test_env
working-directory: ${{ steps.fedml_source_code_home.outputs.dir }}
run: |
cd python
echo "Serving example has been tested successfully!"
Expand Down
34 changes: 4 additions & 30 deletions .github/workflows/CI_train.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,41 +26,15 @@ jobs:
python-version: ['python3.8', 'python3.9', 'python3.10', 'python3.11']

steps:
- name: Extract branch name
shell: bash
run: echo "branch=$(echo ${GITHUB_REF#refs/heads/})" >>$GITHUB_OUTPUT
id: extract_branch
- id: fedml_source_code_home
name: cd to master or dev branch and git pull
shell: bash
run: |
ls
echo ${{ steps.extract_branch.outputs.branch }}
if [[ ${{ steps.extract_branch.outputs.branch }} == "master" ]]; then
echo "running on 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
working-directory: ${{ steps.fedml_source_code_home.outputs.dir }}
- name: Checkout fedml
uses: actions/checkout@v3

- name: pip_install
run: |
homepath=${{ format('{0}', steps.fedml_source_code_home.outputs.dir) }}
echo $Homepath
cd $homepath
cd python
pip install -e ./
- name: training_job_in_test_env
working-directory: ${{ steps.fedml_source_code_home.outputs.dir }}
run: |
cd python
echo "Train example has been tested successfully!"
Expand Down
1 change: 1 addition & 0 deletions add_test.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#aa

0 comments on commit 4bbce76

Please sign in to comment.