forked from FedML-AI/FedML
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from Qigemingziba/wx_develop_action
Wx develop action test
- Loading branch information
Showing
175 changed files
with
11,170 additions
and
10,613 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
# This is a basic workflow to help you get started with Actions | ||
|
||
name: CI-build | ||
|
||
# Controls when the workflow will run | ||
on: | ||
# Triggers the workflow on push or pull request events but only for the master branch | ||
schedule: | ||
# Nightly build at 12:12 A.M. | ||
- cron: "0 10 */1 * *" | ||
pull_request: | ||
branches: [ master, dev/v0.7.0 ] | ||
|
||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
|
||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | ||
jobs: | ||
cross-device-mnn-server: | ||
# defaults: | ||
# run: | ||
# shell: bash | ||
# working-directory: python | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: | ||
# Window 64 bit | ||
- os: ubuntu-latest | ||
python: 38 | ||
bitness: 64 | ||
- os: ubuntu-latest | ||
python: 39 | ||
bitness: 64 | ||
- os: ubuntu-latest | ||
python: 310 | ||
bitness: 64 | ||
- os: ubuntu-latest | ||
python: 311 | ||
bitness: 64 | ||
|
||
runs-on: [ self-hosted, Linux ] | ||
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 }} | ||
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 | ||
# pip install mnn==1.1.6 | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
# This is a basic workflow to help you get started with Actions | ||
|
||
name: CI-launch | ||
|
||
# Controls when the workflow will run | ||
on: | ||
# Triggers the workflow on push or pull request events but only for the master branch | ||
schedule: | ||
# Nightly build at 12:12 A.M. | ||
- cron: "0 10 */1 * *" | ||
pull_request: | ||
branches: [ master, dev/v0.7.0 ] | ||
|
||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
|
||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | ||
jobs: | ||
cross-device-mnn-server: | ||
# defaults: | ||
# run: | ||
# shell: bash | ||
# working-directory: python | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ ubuntu-latest ] | ||
arch: [X64] | ||
python-version: ['3.8'] | ||
# exclude: | ||
# - os: macos-latest | ||
# python-version: '3.8' | ||
# - os: windows-latest | ||
# python-version: '3.6' | ||
runs-on: [ self-hosted, Linux ] | ||
timeout-minutes: 15 | ||
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 }} | ||
run: | | ||
homepath=${{ format('{0}', steps.fedml_source_code_home.outputs.dir) }} | ||
echo $Homepath | ||
cd $homepath | ||
cd python | ||
pip install -e ./ | ||
- name: test | ||
working-directory: ${{ steps.fedml_source_code_home.outputs.dir }} | ||
run: | | ||
cd python | ||
cd examples/federate/quick_start/beehive | ||
# timeout 60 bash run_server.sh || code=$?; if [[ $code -ne 124 && $code -ne 0 ]]; then exit $code; fi | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
# This is a basic workflow to help you get started with Actions | ||
|
||
name: CI-launch | ||
|
||
# Controls when the workflow will run | ||
on: | ||
# Triggers the workflow on push or pull request events but only for the master branch | ||
schedule: | ||
# Nightly build at 12:12 A.M. | ||
- cron: "0 10 */1 * *" | ||
pull_request: | ||
branches: [ master, dev/v0.7.0 ] | ||
|
||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
|
||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | ||
jobs: | ||
launch: | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ ubuntu-latest ] | ||
arch: [X64] | ||
python-version: ['3.8','3.9','3.10','3.11'] | ||
|
||
runs-on: [ self-hosted, Linux ] | ||
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 }} | ||
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 | ||
# python tests/test_launch/test_launch.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
# This is a basic workflow to help you get started with Actions | ||
|
||
name: CI-serving | ||
|
||
# Controls when the workflow will run | ||
on: | ||
# Triggers the workflow on push or pull request events but only for the master branch | ||
schedule: | ||
# Nightly build at 12:12 A.M. | ||
- cron: "0 10 */1 * *" | ||
pull_request: | ||
branches: [ master, dev/v0.7.0 ] | ||
|
||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
|
||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | ||
jobs: | ||
cross-device-mnn-server: | ||
# defaults: | ||
# run: | ||
# shell: bash | ||
# working-directory: python | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ ubuntu-latest ] | ||
arch: [X64] | ||
python-version: ['3.8'] | ||
# exclude: | ||
# - os: macos-latest | ||
# python-version: '3.8' | ||
# - os: windows-latest | ||
# python-version: '3.6' | ||
runs-on: [ self-hosted, Linux ] | ||
timeout-minutes: 15 | ||
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 }} | ||
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 | ||
# python tests/test_launch/test_launch.py | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
# This is a basic workflow to help you get started with Actions | ||
|
||
name: CI-launch | ||
|
||
# Controls when the workflow will run | ||
on: | ||
# Triggers the workflow on push or pull request events but only for the master branch | ||
schedule: | ||
# Nightly build at 12:12 A.M. | ||
- cron: "0 10 */1 * *" | ||
pull_request: | ||
branches: [ master, dev/v0.7.0 ] | ||
|
||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
|
||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | ||
jobs: | ||
cross-device-mnn-server: | ||
# defaults: | ||
# run: | ||
# shell: bash | ||
# working-directory: python | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ ubuntu-latest ] | ||
arch: [X64] | ||
python-version: ['3.8'] | ||
# exclude: | ||
# - os: macos-latest | ||
# python-version: '3.8' | ||
# - os: windows-latest | ||
# python-version: '3.6' | ||
runs-on: [ self-hosted, Linux ] | ||
timeout-minutes: 15 | ||
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 }} | ||
run: | | ||
homepath=${{ format('{0}', steps.fedml_source_code_home.outputs.dir) }} | ||
echo $Homepath | ||
cd $homepath | ||
cd python | ||
pip install -e ./ | ||
- name: test server of cross-device | ||
working-directory: ${{ steps.fedml_source_code_home.outputs.dir }} | ||
run: | | ||
cd python | ||
# cd examples/federate/quick_start/beehive | ||
# timeout 60 bash run_server.sh || code=$?; if [[ $code -ne 124 && $code -ne 0 ]]; then exit $code; fi | ||
Oops, something went wrong.