forked from securefederatedai/openfederatedlearning
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwf_watermarking_fed_runtime.yml
More file actions
66 lines (57 loc) · 2.2 KB
/
wf_watermarking_fed_runtime.yml
File metadata and controls
66 lines (57 loc) · 2.2 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
#---------------------------------------------------------------------------
# Workflow to run 301_MNIST_Watermarking notebook
#---------------------------------------------------------------------------
name: Federated Runtime Watermarking E2E
on:
workflow_call:
inputs:
commit_id:
required: false
type: string
workflow_dispatch:
permissions:
contents: read
env:
COMMIT_ID: ${{ inputs.commit_id || github.sha }} # use commit_id from the calling workflow
jobs:
test_federated_runtime_301_watermarking_notebook:
name: WF Watermarking Without TLS
if: |
(github.event_name == 'schedule' && github.repository_owner == 'securefederatedai') ||
(github.event_name == 'workflow_dispatch') ||
(github.event.pull_request.draft == false)
runs-on: ubuntu-22.04
timeout-minutes: 20
env:
PYTHON_VERSION: '3.10'
steps:
- name: Checkout OpenFL repository
uses: actions/checkout@v4
with:
ref: ${{ env.COMMIT_ID }} # use commit_id from the calling workflow
- name: Pre test run
uses: ./.github/actions/wf_pre_test_run
if: ${{ always() }}
- name: Run Federated Runtime 301 MNIST Watermarking via pytest
id: run_tests
run: |
python -m pytest -s tests/end_to_end/test_suites/wf_federated_runtime_tests.py -k test_federated_runtime_301_watermarking
echo "Federated Runtime 301 MNIST Watermarking test run completed"
- name: Print test summary
id: print_test_summary
if: ${{ always() }}
run: |
export PYTHONPATH="$PYTHONPATH:."
python tests/end_to_end/utils/summary_helper.py --func_name "print_federated_runtime_score" --nb_name "wf_watermarking"
echo "Test summary printed"
- name: Tar files
if: ${{ always() }} # collect artifacts regardless of failures
run: |
tar -cvf notebook_301.tar --exclude="__pycache__" $HOME/results --ignore-failed-read
echo "TAR file created"
- name: Upload Artifacts
uses: actions/upload-artifact@v4
if: ${{ always() }} # collect artifacts regardless of failures
with:
name: federated_runtime_301_watermarking_${{ github.run_id }}
path: notebook_301.tar