Skip to content

Commit

Permalink
Fix docker job
Browse files Browse the repository at this point in the history
Signed-off-by: Chaurasiya, Payal <[email protected]>
  • Loading branch information
payalcha committed Jan 23, 2025
1 parent 87ba787 commit 195e6a8
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions .github/workflows/task_runner_eval_dws_e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,22 @@ env:
JOB_TO_RUN: ${{ inputs.job_to_run || 'all' }}

jobs:
input_selection:
if: |
(github.event_name == 'schedule' && github.repository_owner == 'securefederatedai') ||
(github.event_name == 'workflow_dispatch')
name: Input value selection
runs-on: ubuntu-22.04
outputs:
selected_jobs: ${{ env.JOB_TO_RUN }}
model_name: ${{ env.MODEL_NAME }}

test_with_tls_dockerized_ws:
name: tr_tls_dockerized_ws
needs: input_selection
runs-on: ubuntu-22.04
timeout-minutes: 15
if: ${{ env.JOB_TO_RUN == 'tls' || env.JOB_TO_RUN == 'all' }}
if: needs.input_selection.outputs.selected_jobs == 'tls' || needs.input_selection.outputs.selected_jobs == 'all'
strategy:
matrix:
model_name: ["keras_cnn_mnist"]
Expand Down Expand Up @@ -81,9 +92,10 @@ jobs:

test_with_non_tls_dockerized_ws:
name: tr_non_tls_dockerized_ws
needs: input_selection
runs-on: ubuntu-22.04
timeout-minutes: 15
if: ${{ env.JOB_TO_RUN == 'non_tls' || env.JOB_TO_RUN == 'all' }}
if: needs.input_selection.outputs.selected_jobs == 'non_tls' || needs.input_selection.outputs.selected_jobs == 'all'
strategy:
matrix:
model_name: ["keras_cnn_mnist"]
Expand Down Expand Up @@ -123,9 +135,10 @@ jobs:

test_with_no_client_auth_dockerized_ws:
name: tr_no_client_auth_dockerized_ws
needs: input_selection
runs-on: ubuntu-22.04
timeout-minutes: 15
if: ${{ env.JOB_TO_RUN == 'no_client_auth' || env.JOB_TO_RUN == 'all' }}
if: needs.input_selection.outputs.selected_jobs == 'no_client_auth' || needs.input_selection.outputs.selected_jobs == 'all'
strategy:
matrix:
model_name: ["keras_cnn_mnist"]
Expand Down

0 comments on commit 195e6a8

Please sign in to comment.