Skip to content

Commit

Permalink
ci: Properly catch failed runs
Browse files Browse the repository at this point in the history
Signed-off-by: Oliver Koenig <[email protected]>
  • Loading branch information
ko3n1g committed May 28, 2024
1 parent 85472fd commit 18598e9
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/cicd-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3919,12 +3919,10 @@ jobs:
- L2_Community_LLM_Checkpoints_tests_Llama
- L2_Community_LLM_Checkpoints_tests_StarCoder
- L2_Community_LLM_Checkpoints_tests_Falcon
#- L2_Community_LLM_Checkpoints_tests_Baichuan2
- ASR_dev_run_Speech_to_Text
- ASR_dev_run_Speech_to_Text_WPE_-_CitriNet
- ASR_dev_run_Speech_Pre-training_-_CitriNet
- ASR_dev_run_Speech_To_Text_Finetuning
#- OPTIONAL_ASR_dev_run_Speech_To_Text_HF_Finetuning
- ASR_dev_run_Speech_to_Text_WPE_-_Conformer
- ASR_dev_run-part_two_Speech_to_Text_WPE_-_Squeezeformer
- L2_Speech_to_Text_EMA
Expand Down Expand Up @@ -4023,22 +4021,22 @@ jobs:
- L2_TTS_Fast_dev_runs_1_Tacotron_2
- L2_TTS_Fast_dev_runs_1_WaveGlow
- L2_TTS_Fast_dev_runs_1_FastPitch
#- OPTIONAL_L2_TTS_Fast_dev_runs_1_RADTTS
- L2_TTS_Fast_dev_runs_1_Mixer-TTS
- L2_TTS_Fast_dev_runs_1_Hifigan
- Speech_Checkpoints_tests
if: always()
runs-on: ubuntu-latest
steps:
- run: echo ${{ toJSON(needs.*.outputs.conclusion) }}
# This should depend on all the tests so we block/unblock based on all tests passing
- if: ${{ contains(needs.*.result, 'success') }}
- if: ${{ always() && !contains(needs.*.result, 'failure') }}
run: exit 0

- if: ${{ contains(needs.*.result, 'failure') }}
- if: ${{ always() && contains(needs.*.result, 'failure') }}
name: Checkout repository
uses: actions/checkout@v4

- if: ${{ contains(needs.*.result, 'failure') }}
- if: ${{ always() && contains(needs.*.result, 'failure') }}
run: |
source .github/scripts/slackHelper.sh
Expand Down

0 comments on commit 18598e9

Please sign in to comment.