-
-
Notifications
You must be signed in to change notification settings - Fork 6
75 lines (66 loc) · 2.08 KB
/
apps-tests.yaml
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
name: Test - Apps Standalone
on:
workflow_dispatch:
workflow_call:
jobs:
apps-test:
strategy:
max-parallel: 99
matrix:
apps:
- ring@main
# - tutorial-apps@basic_aggregator
# - tutorial-apps@pretrained_model_aggregator
# - tutorial-apps@pretrained_model_local
python-version: ["3.9"]
os: [ubuntu-latest, macos-latest]
# runner: [syftbox-sh-linux-x64, scaleway-macOS-arm64]
fail-fast: false
# runs-on: ${{ matrix.runner }}
runs-on: ${{ matrix.os }}
steps:
- name: Parse app repository info
id: apprepo
run: |
REPO=$(echo ${{ matrix.apps }} | cut -d'@' -f1)
REF=$(echo ${{ matrix.apps }} | cut -d'@' -f2)
echo "REPO=$REPO" >> $GITHUB_OUTPUT
echo "REF=$REF" >> $GITHUB_OUTPUT
- name: Checkout
uses: actions/checkout@v4
with:
repository: OpenMined/${{ steps.apprepo.outputs.REPO }}
ref: ${{ steps.apprepo.outputs.REF }}
- name: Install uv
uses: astral-sh/setup-uv@v4
with:
version: "0.4.25"
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Provisioning dummy config
run: |
CONFIG_PATH="$(pwd)/config.json"
SYNC_FOLDER="$(pwd)/sync/"
echo '{
"config_path": "'"$CONFIG_PATH"'",
"sync_folder": "'"$SYNC_FOLDER"'",
"port": 8011,
"email": "[email protected]",
"token": null,
"server_url": "http://localhost:5001",
"email_token": null,
"autorun_plugins": [
"init",
"create_datasite",
"sync",
"apps"
]
}' > $CONFIG_PATH
cat $CONFIG_PATH
- name: Run the test
run: |
chmod +x ./run.sh
export SYFTBOX_CLIENT_CONFIG_PATH="$(pwd)/config.json"
sh ./run.sh