-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsmoke_test_cross_silo_fedavg_attack_linux.yml
More file actions
86 lines (77 loc) · 3.07 KB
/
smoke_test_cross_silo_fedavg_attack_linux.yml
File metadata and controls
86 lines (77 loc) · 3.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
# This is a basic workflow to help you get started with Actions
name: Attacker-Linux
# 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: "12 12 */1 * *"
pull_request:
branches: [ master, test/v0.7.0 ]
types: [opened, reopened]
# 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-silo-attack-test:
defaults:
run:
shell: bash
working-directory: python
strategy:
fail-fast: false
matrix:
os: [ ubuntu-latest]
arch: [X64]
python-version: ['3.8']
client-index: ['0', '1', '2', '3', '4']
# exclude:
# - os: macos-latest
# python-version: '3.8'
# - os: windows-latest
# python-version: '3.6'
runs-on: [self-hosted, runner-linux, devops]
timeout-minutes: 15
steps:
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- uses: actions/checkout@v3
- name: pip install -e ./
run: |
pip install -e ./
- name: server - cross-silo - attack
run: |
cd examples/cross_silo/mqtt_s3_fedavg_attack_mnist_lr_example
run_id=cross-silo-attack-${{ format('{0}{1}{2}{3}', github.run_id, matrix.os, matrix.arch, matrix.python-version) }}
echo ${run_id}
bash run_server.sh $run_id
if: ${{ matrix.client-index == '0' }}
- name: client 1 - cross-silo - attack
run: |
cd examples/cross_silo/mqtt_s3_fedavg_attack_mnist_lr_example
run_id=cross-silo-attack-${{ format('{0}{1}{2}{3}', github.run_id, matrix.os, matrix.arch, matrix.python-version) }}
echo ${run_id}
bash run_client.sh 1 $run_id
if: ${{ matrix.client-index == '1' }}
- name: client 2 - cross-silo - attack
run: |
cd examples/cross_silo/mqtt_s3_fedavg_attack_mnist_lr_example
run_id=cross-silo-attack-${{ format('{0}{1}{2}{3}', github.run_id, matrix.os, matrix.arch, matrix.python-version) }}
echo ${run_id}
bash run_client.sh 2 $run_id
if: ${{ matrix.client-index == '2' }}
- name: client 3 - cross-silo - attack
run: |
cd examples/cross_silo/mqtt_s3_fedavg_attack_mnist_lr_example
run_id=cross-silo-attack-${{ format('{0}{1}{2}{3}', github.run_id, matrix.os, matrix.arch, matrix.python-version) }}
echo ${run_id}
bash run_client.sh 3 $run_id
if: ${{ matrix.client-index == '3' }}
- name: client 4 - cross-silo - attack
run: |
cd examples/cross_silo/mqtt_s3_fedavg_attack_mnist_lr_example
run_id=cross-silo-attack-${{ format('{0}{1}{2}{3}', github.run_id, matrix.os, matrix.arch, matrix.python-version) }}
echo ${run_id}
bash run_client.sh 4 $run_id
if: ${{ matrix.client-index == '4' }}