fix corner issue in CI test (#585)

Signed-off-by: chensuyue <suyue.chen@intel.com>
This commit is contained in:
chen, suyue
2024-08-13 17:51:08 +08:00
committed by GitHub
parent 0a6bad0ab9
commit 64bfea9054
2 changed files with 6 additions and 1 deletions

View File

@@ -63,6 +63,7 @@ jobs:
strategy:
matrix:
test_case: ${{ fromJSON(needs.get-test-case.outputs.test_cases) }}
fail-fast: false
runs-on: ${{ inputs.hardware }}
continue-on-error: true
steps:
@@ -100,7 +101,10 @@ jobs:
if: cancelled() || failure()
run: |
cd ${{ github.workspace }}/${{ inputs.example }}/docker/${{ inputs.hardware }}
docker compose stop && docker compose rm -f
yaml_files=$(find . -type f -name "*compose*yaml")
for file in $yaml_files; do
docker compose -f ${file} stop && docker compose -f ${file} rm -f || true
done
docker system prune -f
docker rmi $(docker images --filter reference="*:5000/*/*" -q) || true

View File

@@ -40,6 +40,7 @@ jobs:
needs: [job1, mega-image-build]
strategy:
matrix: ${{ fromJSON(needs.job1.outputs.run_matrix) }}
fail-fast: false
uses: ./.github/workflows/_run-docker-compose.yml
with:
tag: ${{ needs.mega-image-build.outputs.image_tag }}