From 44a80cf69caec18677f2f6175849e8b06a5ea359 Mon Sep 17 00:00:00 2001 From: LPeurey Date: Wed, 13 Nov 2024 11:11:53 +0100 Subject: [PATCH] add retry logic to ffmeg github tests setup --- .github/workflows/tests.yml | 57 +++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 5eddb190..0d8d26a2 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -16,6 +16,25 @@ jobs: with: python-version: "${{ matrix.python-version }}" - name: ffmpeg + id: try1 + continue-on-error: true + uses: FedericoCarboni/setup-ffmpeg@v3 + with: + ffmpeg-version: release + architecture: '' + github-token: ${{ secrets.GITHUB }} + - name: ffmpeg (retry 1) + if: ${{ steps.try1.outcome == 'failure' }} + id: try2 + continue-on-error: true + uses: FedericoCarboni/setup-ffmpeg@v3 + with: + ffmpeg-version: release + architecture: '' + github-token: ${{ secrets.GITHUB }} + - name: ffmpeg (retry 2) + if: ${{ steps.try2.outcome == 'failure' }} + id: try3 uses: FedericoCarboni/setup-ffmpeg@v3 with: ffmpeg-version: release @@ -51,6 +70,25 @@ jobs: with: python-version: "${{ matrix.python-version }}" - name: ffmpeg + id: try1 + continue-on-error: true + uses: FedericoCarboni/setup-ffmpeg@v3 + with: + ffmpeg-version: release + architecture: '' + github-token: ${{ secrets.GITHUB }} + - name: ffmpeg (retry 1) + if: ${{ steps.try1.outcome == 'failure' }} + id: try2 + continue-on-error: true + uses: FedericoCarboni/setup-ffmpeg@v3 + with: + ffmpeg-version: release + architecture: '' + github-token: ${{ secrets.GITHUB }} + - name: ffmpeg (retry 2) + if: ${{ steps.try2.outcome == 'failure' }} + id: try3 uses: FedericoCarboni/setup-ffmpeg@v3 with: ffmpeg-version: release @@ -80,6 +118,25 @@ jobs: with: python-version: "${{ matrix.python-version }}" - name: ffmpeg + id: try1 + continue-on-error: true + uses: FedericoCarboni/setup-ffmpeg@v3 + with: + ffmpeg-version: release + architecture: '' + github-token: ${{ secrets.GITHUB }} + - name: ffmpeg (retry 1) + if: ${{ steps.try1.outcome == 'failure' }} + id: try2 + continue-on-error: true + uses: FedericoCarboni/setup-ffmpeg@v3 + with: + ffmpeg-version: release + architecture: '' + github-token: ${{ secrets.GITHUB }} + - name: ffmpeg (retry 2) + if: ${{ steps.try2.outcome == 'failure' }} + id: try3 uses: FedericoCarboni/setup-ffmpeg@v3 with: ffmpeg-version: release