mirror of
https://github.com/mudler/LocalAI.git
synced 2025-06-30 06:30:43 +00:00
breakout
Signed-off-by: Dave Lee <dave@gray101.com>
This commit is contained in:
parent
505fe7da32
commit
b448ba5a25
2 changed files with 42 additions and 16 deletions
30
.github/workflows/report_status.yaml
vendored
Normal file
30
.github/workflows/report_status.yaml
vendored
Normal file
|
@ -0,0 +1,30 @@
|
|||
# .github/actions/report-status/action.yml
|
||||
name: 'Report Status'
|
||||
on:
|
||||
workflow_call:
|
||||
inputs:
|
||||
job_name:
|
||||
description: 'The name of the job to report'
|
||||
required: true
|
||||
default: ''
|
||||
type: string
|
||||
runs-on:
|
||||
description: 'Runs on'
|
||||
required: true
|
||||
default: 'ubuntu-latest'
|
||||
type: string
|
||||
jobs:
|
||||
reusable-report-status:
|
||||
runs-on: ${{ inputs.runs-on }}
|
||||
steps:
|
||||
- name: Print Job Result
|
||||
run: |
|
||||
echo "Job: ${{ inputs.job_name }}""
|
||||
echo "${{ needs[inputs.job_name].result }}"
|
||||
|
||||
- name: Check Job Status
|
||||
run: |
|
||||
if [[ "${{ needs[inputs.job_name].result }}" == "failure" || "${{ needs[inputs.job_name].result }}" == "cancelled" ]]; then
|
||||
echo "${{ needs[inputs.job_name].output }}"
|
||||
exit 1
|
||||
fi
|
28
.github/workflows/test-extra.yml
vendored
28
.github/workflows/test-extra.yml
vendored
|
@ -317,25 +317,21 @@ jobs:
|
|||
needs: [tests-transformers, tests-sentencetransformers, tests-rerankers, tests-diffusers, tests-parler-tts, tests-openvoice, tests-transformers-musicgen, tests-vallex, tests-coqui]
|
||||
steps:
|
||||
- name: Report Status for coqui
|
||||
if: needs.tests-coqui.result != 'success'
|
||||
run: |
|
||||
echo ${{needs.tests-coqui.outputs}}
|
||||
exit 1
|
||||
uses: ./.github/workflows/report_status.yaml
|
||||
with:
|
||||
job_name: tests-coqui
|
||||
- name: Report Status for diffusers
|
||||
if: needs.tests-diffusers.result != 'success'
|
||||
run: |
|
||||
echo ${{needs.tests-diffusers.outputs}}
|
||||
exit 1
|
||||
uses: ./.github/workflows/report_status.yaml
|
||||
with:
|
||||
job_name: tests-diffusers
|
||||
- name: Report Status for openvoice
|
||||
if: needs.tests-openvoice.result != 'success'
|
||||
run: |
|
||||
echo ${{needs.tests-openvoice.outputs}}
|
||||
exit 1
|
||||
uses: ./.github/workflows/report_status.yaml
|
||||
with:
|
||||
job_name: tests-openvoice
|
||||
- name: Report Status for parler-tts
|
||||
if: needs.tests-parler-tts.result != 'success'
|
||||
run: |
|
||||
echo ${{needs.tests-parler-tts.outputs}}
|
||||
exit 1
|
||||
uses: ./.github/workflows/report_status.yaml
|
||||
with:
|
||||
job_name: tests-parler-tts
|
||||
- name: Report Success
|
||||
run: |
|
||||
echo "test-extra successfully completed"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue